/* General Styles */
:root {
    --primary-color: #3b82f6;
    --primary-hover-color: #2563eb;
    --background-color: #f3f4f6;
    --card-background-color: #ffffff;
    --text-color: #374151;
    --label-color: #4b5563;
    --border-color: #d1d5db;
    --error-color: #ef4444;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Card Styles */
.auth-card {
    background-color: var(--card-background-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.auth-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-body {
    padding: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--label-color);
}

.input-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.75rem; /* Space for icon */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

#password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Button */
.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
}

.btn-primary i {
    margin-right: 0.5rem;
}

/* Links and Footer */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-footer-links {
    margin-top: 2rem;
}

.auth-footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-links a:hover {
    color: var(--primary-color);
}

.auth-footer {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Helper Classes (Errors, Status) */
.text-sm {
    font-size: 0.9rem;
}

.text-gray-600 {
    color: #4b5563;
}

.mb-4 {
    margin-bottom: 1rem;
}

.input-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.session-status {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-body {
        padding: 1.5rem;
    }

    .auth-header {
        padding: 1rem;
    }

    .auth-header h2 {
        font-size: 1.25rem;
    }
}

.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.developer-credit a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.developer-credit a:hover {
    text-decoration: underline;
}