/* Authentication Pages Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #6B3744 0%, #7B4453 50%, #8B5463 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.auth-logo {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
    mix-blend-mode: multiply;
    filter: brightness(1.2);
}

.auth-header h1 {
    font-size: 2.5em;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

.auth-tagline {
    font-size: 1em;
    margin: 0;
    color: #D4A574;
    font-style: italic;
    font-weight: 300;
}

.auth-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box h2 {
    margin: 0 0 30px 0;
    color: #6B3744;
    text-align: center;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2B5EA6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary {
    background-color: #6B3744;
    color: white;
}

.btn-primary:hover {
    background-color: #7B4453;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 55, 68, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    display: none;
    font-size: 0.9em;
}

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

.success-message {
    margin-top: 15px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    display: none;
    font-size: 0.9em;
}

.success-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    margin: 0;
}

.auth-footer a {
    color: #2B5EA6;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.auth-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
        max-width: 100%;
    }

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

    .auth-header h1 {
        font-size: 2em;
    }

    .auth-tagline {
        font-size: 0.9em;
    }

    .auth-logo {
        height: 80px;
    }

    .auth-box h2 {
        font-size: 1.5em;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .btn {
        padding: 12px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding-top: 20px;
    }

    .auth-container {
        padding: 10px;
    }

    .auth-box {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .auth-header h1 {
        font-size: 1.5em;
    }

    .auth-tagline {
        font-size: 0.8em;
    }

    .auth-logo {
        height: 60px;
    }

    .auth-box h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9em;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.9em;
    }

    .btn {
        padding: 11px;
        font-size: 0.95em;
    }

    .auth-footer {
        margin-top: 20px;
        padding-top: 20px;
    }

    .auth-footer p {
        font-size: 0.9em;
    }
}
