/* Authentication Pages Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --primary-color: #667eea;
    --primary-hover: #5568d3;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Animated background elements */
.auth-body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.auth-body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-logo i {
    font-size: 32px;
    color: white;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: white;
}

.auth-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.auth-content {
    padding: 40px;
}

/* Auth Form Styling */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.auth-form-group label .required {
    color: #ef4444;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 14px 45px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 48px;
    line-height: 1.5;
}

.auth-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #ffffff;
}

.auth-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
    height: auto;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle i {
    font-size: 16px;
}

/* Error Messages */
.auth-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Remember Me & Forgot Password */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
}

.auth-checkbox label {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.auth-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    height: 50px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

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

/* Loading State */
.auth-btn.loading {
    position: relative;
    color: transparent;
}

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

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

/* Divider */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* Back to Login */
.auth-back {
    text-align: center;
    margin-top: 24px;
}

.auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.auth-back a i {
    font-size: 12px;
}

/* Success Message */
.auth-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: #065f46;
    font-size: 14px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.auth-success i {
    color: #10b981;
    font-size: 18px;
    margin-top: 2px;
}

/* Info Message */
.auth-info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.6;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-wrapper {
        max-width: 100%;
    }

    .auth-card {
        border-radius: 12px;
    }

    .auth-header {
        padding: 32px 24px 24px;
    }

    .auth-content {
        padding: 24px;
    }

    .auth-title {
        font-size: 24px;
    }

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

/* Additional Animations */
.auth-form-group {
    animation: fadeIn 0.5s ease-out backwards;
}

.auth-form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.auth-form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-form-group:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}