/* ============================================
   Umrah Agency - Auth Pages Common Stylesheet
   ============================================ */

:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #f8f9fa;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #f3f4f6;
}

/* Container */
.auth-container {
    min-height: 100vh;
    display: flex;
}

/* Brand Section */
.brand-section {
    flex: 1;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.brand-logo i {
    font-size: 2.5rem;
    color: #fff;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 400px;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Header Center (for OTP page) */
.form-header-center {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header-center h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header-center p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Input Groups */
.input-group-custom {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group-custom .form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    transition: all 0.3s ease;
    height: 52px;
}

.input-group-custom .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.input-group-custom .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.3s ease;
}

.input-group-custom .form-control:focus + .input-icon {
    color: var(--primary-color);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-auth {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 52px;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.3);
}

.btn-auth:hover::before {
    left: 100%;
}

/* Links */
.forgot-link {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: var(--primary-dark);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 1.5rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
    color: var(--primary-dark);
    text-decoration: none;
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.resend-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* OTP Specific */
.otp-icon {
    width: 70px;
    height: 70px;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.otp-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.otp-input {
    letter-spacing: 16px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    height: 60px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    outline: none;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.password-strength .progress {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
}

.password-strength .progress-bar {
    transition: all 0.3s ease;
}

.password-strength .strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Alerts */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-custom.alert-danger {
    background: #fef2f2;
    color: #dc2626;
}

.alert-custom.alert-success {
    background: #f0fdf4;
    color: #16a34a;
}

.alert-custom.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
}

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

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .brand-section {
        display: none;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 1.5rem;
    }

    .form-wrapper {
        padding: 0;
    }
}
