

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter";
}

html {
    text-align: center;
    font-size: 14pt;
}

body {
    min-height: 100vh;
    background-image: url('../images/Background.png');
    background-size: cover;
    background-position: right;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    position: relative;
    box-sizing: border-box;
    background-color: #f5f5f5;
    min-height: 100vh;
    height: auto;
    width: min(650px, 100%);
    padding: 10px;
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    top: 17px;
    left: 40px;
    margin: 0;
    padding: 0;
}

.logo a {
    display: block;
    margin: 0;
    padding: 0;
}

.logo img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2rem;
    font-weight: 900;
}

form {
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(360px, 100%);
}

.form-box {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin-bottom: 0;
    display: none;
}

.form-box.active {
    display: block;
}

.form-box input, 
.form-box select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dddcdc;
    border-radius: 8px;
    outline: none;
    margin-top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

[name="login"],
[name="signup"],
[name="verify_code"],
[name="resend_verify"],
[name="forgot_password"],
[name="reset_password"] {
    background-color: #7e030b;
    color: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    max-width: 360px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-top: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

[name="login"]:hover,
[name="signup"]:hover,
[name="verify_code"]:hover,
[name="resend_verify"]:hover,
[name="forgot_password"]:hover,
[name="reset_password"]:hover {
    background-color: #610107;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}
[name="forgot_password"]:disabled,
[name="reset_password"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

p a {
    text-decoration: none;
    color: #787777;
}

p a:visited {
    text-decoration: none;
    color: #550207;
}

p {
    color: #787777;
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
}

h5 {
    margin-bottom: 18px;
    color: #787777;
    font-weight: 400;
    line-height: 1.45;
    max-width: 360px;
}

.form-error {
    padding: 12px;
    background-color: #bd8084;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    color: #7e030b;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
}

.form-success {
    padding: 12px;
    background-color: #d8f0e0;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    color: #1f6b3a;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 4px 0 10px;
    font-size: 13px;
    color: #5a5a5a;
    text-align: left;
}

.terms-check input {
    margin-top: 2px;
    width: auto;
}

.terms-check a {
    color: #610107;
    font-weight: 700;
}

.resend-verify-form {
    margin-top: 0;
    margin-bottom: 0;
    gap: 10px;
    width: min(360px, 100%);
}

.resend-verify-label {
    margin: 0;
    color: #5a5a5a;
    font-size: 13px;
}

/* ---- Responsive: auth ---- */
@media (max-width: 768px) {
    html {
        font-size: 13pt;
    }

    .container {
        width: 100%;
        border-radius: 0;
        padding: 24px 16px 32px;
        justify-content: flex-start;
        padding-top: 96px;
    }

    .logo {
        left: 16px;
        top: 12px;
    }

    .logo img {
        width: 64px;
    }

    h1 {
        font-size: 1.7rem;
    }

    form,
    .form-box,
    .resend-verify-form,
    h5 {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12pt;
    }

    .container {
        padding: 88px 14px 28px;
    }

    h1 {
        font-size: 1.45rem;
    }

    h5,
    p {
        font-size: 13px;
    }

    .form-box input,
    .form-box select {
        padding: 11px 12px;
    }
}

