/* Authentication Pages Styling */

.auth-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-secondary);
}

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

.auth-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 32px var(--shadow-md);
    transition: all 0.3s ease;
}

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

.auth-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 17px;
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 49, 94, 0.2);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.link:hover {
    opacity: 0.8;
}

.form-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 31, 61, 0.3);
}

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

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Input Security & Validation Styling */
.form-input:invalid {
    border-color: var(--border-color);
}

.form-input:invalid:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #00b894;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Light Mode Overrides */
[data-theme="light"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(122, 31, 61, 0.1);
}

[data-theme="light"] .form-error {
    background-color: #fff5f5;
    color: #c0392b;
    border-color: #e74c3c;
}
