/* Real Estate Login Page - Premium Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        background-image: url(bg.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

#page-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

#main-container {
    width: 100%;
    padding: 20px;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hero-static {
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bgimage1234 {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 24px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(59, 130, 246, 0.2);
    padding: 50px 45px !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bgimage1234::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bgimage1234:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(59, 130, 246, 0.3);
}

/* Header Section */
.mb-3.text-center {
    margin-bottom: 30px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-fluid {
    max-width: 140px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.05);
}

h3 {
    color: #1e293b;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    width: 100%;
}

.text-uppercase {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 3px;
    margin-bottom: 0;
    text-transform: uppercase;
    text-align: center !important;
    width: 100%;
    display: block;
}

/* Form Styling */
.py-3 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 16px 50px 16px 50px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: relative;
}

.py-3 .form-group:first-child .form-control {
    padding-right: 20px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control:hover {
    border-color: #cbd5e0;
    background: #ffffff;
}

/* Button Styling */
.btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #FFB800 0%, #FDB913 50%, #F59E0B 100%);
    color: #ffffff;
    box-shadow: 
        0 4px 15px rgba(253, 185, 19, 0.4),
        0 2px 8px rgba(253, 185, 19, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(253, 185, 19, 0.5),
        0 4px 12px rgba(253, 185, 19, 0.4);
    background: linear-gradient(135deg, #FDB913 0%, #F59E0B 50%, #D97706 100%);
}

.btn-hero-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 3px 12px rgba(253, 185, 19, 0.4),
        0 1px 6px rgba(253, 185, 19, 0.3);
}

/* Links Styling */
a {
    color: #3b82f6 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    margin: 8px 0;
    padding: 4px 0;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #2563eb !important;
    transform: translateX(5px);
}

/* Specific link spacing */
.form-group a {
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Center alignment */
center {
    display: block;
    text-align: center;
}

/* Checkbox (hidden but styled if needed) */
#CheckBox1 {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-static {
        max-width: 100%;
        margin: 0 15px;
    }

    .bgimage1234 {
        padding: 35px 25px !important;
        border-radius: 20px;
    }

    h3 {
        font-size: 26px;
    }

    .text-uppercase {
        font-size: 12px !important;
        letter-spacing: 2px;
    }

    .form-control {
        padding: 14px 45px 14px 45px;
        font-size: 14px;
    }

    .py-3 .form-group:first-child .form-control {
        padding-right: 18px;
    }

    .btn {
        padding: 13px 20px;
        font-size: 15px;
    }

    .img-fluid {
        max-width: 110px;
    }

    a {
        font-size: 14px;
    }

    /* Adjust icon sizes for mobile */
    .py-3 .form-group:first-child::before,
    .py-3 .form-group:nth-child(2)::before {
        width: 18px;
        height: 18px;
        left: 15px;
    }

    .py-3 .form-group:nth-child(2)::after {
        width: 20px;
        height: 20px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .bgimage1234 {
        padding: 30px 20px !important;
        border-radius: 18px;
    }

    h3 {
        font-size: 24px;
    }

    .text-uppercase {
        font-size: 11px !important;
        letter-spacing: 1.5px;
    }

    .img-fluid {
        max-width: 100px;
    }

    .form-control {
        padding: 13px 40px 13px 40px;
        font-size: 14px;
    }

    .py-3 .form-group:first-child .form-control {
        padding-right: 15px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    a {
        font-size: 13px;
    }

    /* Smaller icons for very small screens */
    .py-3 .form-group:first-child::before,
    .py-3 .form-group:nth-child(2)::before {
        width: 16px;
        height: 16px;
        left: 14px;
    }

    .py-3 .form-group:nth-child(2)::after {
        width: 18px;
        height: 18px;
        right: 14px;
    }
}

/* Form Icons */
.py-3 .form-group:first-child {
    position: relative;
}

.py-3 .form-group:first-child::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2.5" stroke-linecap="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

.py-3 .form-group:nth-child(2) {
    position: relative;
}

.py-3 .form-group:nth-child(2)::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2.5" stroke-linecap="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

/* Password Eye Icon - Only for password fields */
.py-3 .form-group:nth-child(2)::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.6;
    pointer-events: auto;
}

/* Only show eye icon if the input is password type */
.py-3 .form-group:nth-child(2):has(input[type="password"])::after {
    display: block;
}

.py-3 .form-group:nth-child(2):not(:has(input[type="password"]))::after {
    display: none;
}

.py-3 .form-group:nth-child(2):hover::after {
    opacity: 1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
}

/* Add ID for JavaScript targeting */
#TextBox2 {
    padding-right: 50px !important;
}

/* Email field should not have extra padding on right */
#txtemail {
    padding-right: 20px !important;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.btn-hero-primary:disabled {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    cursor: not-allowed;
}

/* Success/Error Message Styling (if needed) */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
