/* GLOBAL STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --black: #0b0b0b;
    --card: #151515;
    --border: #303030;
    --muted: #999999;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: white;
    min-height: 100vh;
}


/* MAIN CONTAINER */

.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}


/* BRAND SECTION */

.login-brand {
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
        url("../assets/images/login-bg.jpg");

    background-size: cover;
    background-position: center;

    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 35px;
    letter-spacing: 3px;
}

.login-brand h1 span {
    color: var(--gold);
}

.tagline {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 8px;
}

.brand-message {
    max-width: 450px;
}

.brand-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.brand-message p {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.8;
}

.copyright {
    color: #888888;
    font-size: 11px;
}


/* LOGIN SECTION */

.login-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.welcome-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.login-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
}

.description {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 40px;
}


/* FORM */

.form-group {
    margin-bottom: 23px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: #777777;
}


/* LOGIN BUTTON */

#loginButton {
    width: 100%;
    padding: 15px;
    margin-top: 12px;

    background: var(--gold);
    color: #111111;

    border: none;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.3s;
}

#loginButton:hover {
    background: #edca57;
    transform: translateY(-2px);
}

#loginButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* ERROR MESSAGE */

.error-message {
    color: #ff7777;
    font-size: 12px;
    margin-top: 10px;
    min-height: 15px;
}


/* REGISTER LINK */

.register-text {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 30px;
}

.register-text a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.register-text a:hover {
    text-decoration: underline;
}


/* BACK LINK */

.back-link {
    display: block;
    text-align: center;
    margin-top: 35px;
    color: #888888;
    font-size: 12px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--gold);
}


/* RESPONSIVE DESIGN */

@media (max-width: 850px) {

    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 300px;
        padding: 30px;
    }

    .brand-message h2 {
        font-size: 36px;
    }

    .copyright {
        margin-top: 35px;
    }

    .login-form-section {
        padding: 45px 25px;
    }

}

@media (max-width: 480px) {

    .login-brand {
        min-height: 260px;
    }

    .brand-message h2 {
        font-size: 30px;
    }

    .login-card h2 {
        font-size: 30px;
    }

}

.forgot-password-link {
    display: block;
    text-align: right;
    color: #d4af37;
    font-size: 13px;
    text-decoration: none;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}