/* ==========================================================================
   Authentication Pages Styles
   ========================================================================== */

/* Login Page Background */
.page-bg {
    background-image: url('/assets/media/images/2600x1200/bg-10.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dark .page-bg {
    background-image: url('/assets/media/images/2600x1200/bg-10-dark.png');
}

/* Auth Form Styles */
.auth-form {
    max-width: 370px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
    color: var(--kt-text-dark);
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--kt-text-muted);
}

/* Social Login Buttons */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--kt-border-color);
    border-radius: 0.5rem;
    background: white;
    color: var(--kt-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--kt-primary);
    background: var(--kt-primary-light);
}

.social-btn img {
    width: 1rem;
    height: 1rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--kt-border-color);
}

.auth-divider-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--kt-text-muted);
    text-transform: uppercase;
    padding: 0 0.5rem;
}

/* Form Fields */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.auth-field-header {
    display: flex;
    align-items: center;
    justify-content: between;
    gap: 0.25rem;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--kt-text-dark);
}

.auth-link {
    font-size: 0.875rem;
    color: var(--kt-primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Input Styles */
.auth-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--kt-border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px var(--kt-primary-light);
}

.auth-input.error {
    border-color: var(--kt-danger);
}

.auth-input::placeholder {
    color: var(--kt-text-muted);
}

/* Password Input with Toggle */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--kt-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

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

/* Error Messages */
.auth-error {
    font-size: 0.75rem;
    color: var(--kt-danger);
    margin-top: 0.25rem;
}

/* Checkbox Field */
.auth-checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--kt-primary);
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: var(--kt-text-dark);
    cursor: pointer;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--kt-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 1.5rem 0;
}

.auth-submit:hover {
    background: var(--kt-primary-dark);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--kt-text-muted);
}

.auth-footer a {
    color: var(--kt-primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .auth-form {
        max-width: 100%;
        padding: 1rem;
    }
    
    .social-login-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support */
.dark .auth-form {
    background: var(--kt-card-bg-dark);
    border-color: var(--kt-border-dark);
}

.dark .auth-input {
    background: var(--kt-input-bg-dark);
    border-color: var(--kt-border-dark);
    color: var(--kt-text-dark);
}

.dark .social-btn {
    background: var(--kt-card-bg-dark);
    border-color: var(--kt-border-dark);
    color: var(--kt-text-dark);
}

/* Loading States */
.auth-submit.loading {
    position: relative;
    color: transparent;
}

.auth-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Two-Factor Verification Styles */
.verification-code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.code-input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid var(--kt-border-color);
    border-radius: 0.5rem;
    background: white;
}

.code-input:focus {
    border-color: var(--kt-primary);
    outline: none;
}

.code-input.filled {
    background: var(--kt-primary-light);
    border-color: var(--kt-primary);
}

/* Reset Password Styles */
.reset-info {
    background: var(--kt-info-light);
    border: 1px solid var(--kt-info);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--kt-info-dark);
}

/* Email Verification Styles */
.verification-notice {
    background: var(--kt-warning-light);
    border: 1px solid var(--kt-warning);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.verification-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--kt-warning-dark);
}

.verification-text {
    font-size: 0.875rem;
    color: var(--kt-text-muted);
    margin-bottom: 1rem;
}

.resend-verification {
    background: var(--kt-warning);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.resend-verification:hover {
    background: var(--kt-warning-dark);
}
