@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gold: #b69d61;
    --primary-hover: #a58c50;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --input-bg: rgba(255, 255, 255, 0.08);
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

/* --- Full Screen Background --- */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url("../images/login/real_estate_bg.png") no-repeat center center;
    background-size: cover;
}

.login-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
}

/* --- Centered Login Card --- */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(15, 23, 42, 0.4); /* Darker tint for better contrast on bright sunrise bg */
    backdrop-filter: blur(40px); /* Increased blur for better legibility */
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 100%;
    max-width: 420px;
    padding: 3.5rem 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo img {
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h4 {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Form --- */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: block;
}

.input-group {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(182, 157, 97, 0.2);
}

.form-control {
    background: transparent !important;
    border: none !important;
    color: var(--white) !important;
    height: 50px !important;
    padding: 0 1.25rem !important;
    font-size: 1rem !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    padding-right: 1.25rem !important;
}

.btn-custom {
    background: var(--primary-gold) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.875rem !important;
    font-weight: 600 !important;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px -5px rgba(182, 157, 97, 0.4);
}

.btn-custom:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(182, 157, 97, 0.5);
}

.forgot-link {
    color: var(--primary-gold) !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem;
        border-radius: 20px;
    }
}
