/**
 * Modern Authentication Pages Design
 * Login & Registration Forms with Enhanced Readability
 */

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-box h2 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.auth-subtitle {
    color: #4a5568;
    font-size: 1rem;
    text-align: center;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background-color: #c6f6d5;
    color: #276749;
    border: 1px solid #68d391;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #1a202c;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
    font-size: 0.95rem;
}

.form-group small {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: -0.25rem;
}

/* Checkbox Styling */
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-actions a {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.form-actions a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Button Styling */
.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Password Requirements */
.password-requirements {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.875rem;
    margin-top: -0.5rem;
}

.password-requirements h4 {
    color: #2d3748;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.password-requirements li {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.6;
    position: relative;
}

.password-requirements li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .auth-box h2 {
        font-size: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Terms Link Styling */
.form-group a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.form-group a:hover {
    color: #764ba2;
    text-decoration: underline;
}
