:root {
    --primary-color: #e6af61;
    --secondary-color: #3b2f2f;
    --accent-color: #a87e5b;
    --dark-gray: #2c2c2c;
    --light-gray: #f8f9fa;
    --border-color: #e1e5e9;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --font-inter: 'Inter', sans-serif;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --text-dark: #2d3748;
    --text-light: #718096;
}

body {
    font-family: var(--font-inter);
    background: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-dark);
}

.page-container {
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    margin-top: -50px; /* Adjust to center content better */
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

.auth-card:hover {
    box-shadow: var(--shadow-hover);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease-in-out;
}

.form-instruction {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem; /* Left padding for icon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 175, 97, 0.3);
}

.input-group .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: color 0.3s ease;
}

.input-group input:focus + .icon {
    color: var(--primary-color);
}

.auth-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.auth-button:active {
    transform: translateY(0);
}

.message {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 1rem;
}

.error {
    color: #e74c3c;
    font-weight: 500;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.back-to-login {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.back-to-login a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-login a:hover {
    color: var(--secondary-color);
}

.auth-button {
    position: relative;
    overflow: hidden;
}

.auth-button .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

/* State when the button is loading */
.auth-button.loading .button-text {
    visibility: hidden;
    opacity: 0;
}

.auth-button.loading .loader {
    visibility: visible;
    opacity: 1;
}

.hidden {
    display: none;
}