
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 30px 15px;

    font-family: Arial, Helvetica, sans-serif;

    background:
        linear-gradient(
            rgba(110, 0, 0, 0.82),
            rgba(110, 0, 0, 0.82));

    display: flex;
    justify-content: center;
    align-items: center;
}


.login-container {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}


.login-card {
    width: 100%;
    max-width: 480px;
    padding: 38px 40px;

    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}


.brand {
    margin-bottom: 27px;
    text-align: center;
}

.brand-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 12px;

    color: #ffffff;
    background-color: #b71c1c;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.3);

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 31px;
}

.brand h1 {
    margin-bottom: 5px;
    color: #b71c1c;
    font-size: 30px;
}

.brand p {
    color: #777777;
    font-size: 14px;
}


.form-heading {
    margin-bottom: 27px;
    text-align: center;
}

.form-heading h2 {
    margin-bottom: 7px;
    color: #222222;
    font-size: 24px;
}

.form-heading p {
    color: #777777;
    font-size: 14px;
}


.input-group {
    margin-bottom: 19px;
}

.input-group label {
    display: block;
    margin-bottom: 7px;

    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

.input-box {
    position: relative;
    width: 100%;
}

.input-box > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);

    color: #999999;
    font-size: 15px;
    pointer-events: none;
}

.input-box input {
    width: 100%;
    height: 50px;
    padding: 0 48px;

    color: #333333;
    background-color: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 9px;
    outline: none;

    font-size: 15px;
    transition: 0.25s ease;
}

.input-box input::placeholder {
    color: #aaaaaa;
}

.input-box input:focus {
    background-color: #ffffff;
    border-color: #b71c1c;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
}


.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);

    padding: 4px;
    color: #888888;
    background: transparent;
    border: none;

    font-size: 16px;
    cursor: pointer;
}

.password-toggle:hover {
    color: #b71c1c;
}


.login-options {
    margin-top: -2px;
    margin-bottom: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
}

.remember-me {
    color: #666666;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 7px;
}

.remember-me input {
    width: 15px;
    height: 15px;
    accent-color: #b71c1c;
    cursor: pointer;
}

.forgot-password {
    color: #b71c1c;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}


.form-message {
    min-height: 19px;
    margin-bottom: 10px;

    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.form-message.error {
    color: #d32f2f;
}

.form-message.success {
    color: #2e7d32;
}


.login-button {
    width: 100%;
    height: 50px;

    color: #ffffff;
    background-color: #b71c1c;
    border: none;
    border-radius: 9px;

    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
}

.login-button i {
    margin-right: 8px;
}

.login-button:hover {
    background-color: #8e1111;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(183, 28, 28, 0.3);
}

.login-button:active {
    transform: translateY(0);
}


.create-account-link {
    margin-top: 23px;

    color: #666666;
    text-align: center;
    font-size: 14px;
}

.create-account-link a {
    color: #b71c1c;
    font-weight: bold;
    text-decoration: none;
}

.create-account-link a:hover {
    text-decoration: underline;
}

.recovery-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.recovery-overlay.show { display: flex; }

.recovery-modal {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.recovery-modal h2 { margin-bottom: 8px; text-align: center; color: #222; }
.recovery-modal form > p { margin-bottom: 20px; color: #777; font-size: 14px; line-height: 1.5; text-align: center; }
.recovery-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 8px; color: #666; background: #f1f1f1; cursor: pointer; }
.recovery-icon { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #b71c1c; background: #ffebee; font-size: 22px; }
.recovery-resend { display: block; margin: -5px auto 12px; border: 0; color: #b71c1c; background: transparent; font-weight: 600; cursor: pointer; }
.recovery-resend:disabled { color: #999; cursor: not-allowed; }

@media (max-width: 600px) {
    body {
        padding: 20px 12px;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .brand h1 {
        font-size: 27px;
    }

    .form-heading h2 {
        font-size: 22px;
    }

    .input-box input {
        height: 47px;
        font-size: 14px;
    }

    .login-options {
        align-items: flex-start;
        gap: 12px;
    }

}
