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

body {
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f1ea;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

/* AUTH WRAPPER */

.auth-wrapper {
    position: relative;
    width: 100%;
    min-height: 590px;
    overflow: hidden;
}

/* AUTH PAGE */

.auth-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 45px;
    border: 1px solid #e5e0d5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.55s ease, opacity 0.55s ease;
}

/* REGISTER PAGE */

.register-page {
    transform: translateX(0);
    opacity: 1;
}

/* LOGIN PAGE */

.login-page {
    transform: translateX(100%);
    opacity: 0;
}

.auth-wrapper.show-login .register-page {
    transform: translateX(-100%);
    opacity: 0;
}

.auth-wrapper.show-login .login-page {
    transform: translateX(0);
    opacity: 1;
}


.auth-header {
    margin-bottom: 35px;
    text-align: center;
}

.subtitle {
    margin-bottom: 12px;
    color: #a16207;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.auth-header h1 {
    margin-bottom: 12px;
    color: #1f2937;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    line-height: 1;
}

.auth-header p:last-child {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

/* FORM */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #d6d3cc;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: #a16207;
    box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.12);
}

/* PASSWORD */

.password-hint {
    margin-top: -8px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.5;
}

/* MESSAGE */

.message {
    min-height: 20px;
    margin-top: -5px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.5;
}

/* AUTH btn */

.auth-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-button:hover {
    background: #a16207;
    transform: translateY(-2px);
}

/* SWITCH TEXT */

.switch-text {
    margin-top: 25px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.switch-text button {
    padding: 0;
    border: none;
    background: transparent;
    color: #a16207;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.switch-text button:hover {
    text-decoration: underline;
}

/* DASHBOARD */

.dashboard-page {
    width: 100%;
    text-align: center;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin-bottom: 12px;
    color: #1f2937;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    line-height: 1;
}

.dashboard-header p:last-child {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

/* DASHBOARD CARD */

.dashboard-card {
    padding: 35px;
    border: 1px solid #e5e0d5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-card h2 {
    margin-bottom: 12px;
    color: #1f2937;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.dashboard-card p {
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}

/* LOGOUT */

.logout-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.logout-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* HIDDEN */

.hidden {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 550px) {

    body {
        padding: 20px 15px;
    }

    .auth-wrapper {
        min-height: 570px;
    }

    .auth-page {
        padding: 35px 25px;
    }

    .auth-header h1 {
        font-size: 44px;
    }

    .dashboard-header h1 {
        font-size: 48px;
    }

    .dashboard-card {
        padding: 28px 22px;
    }
}


@media (max-width: 380px) {

    .auth-wrapper {
        min-height: 550px;
    }

    .auth-page {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 40px;
    }

    .dashboard-header h1 {
        font-size: 42px;
    }
}