/* Premium Authentication Styles - DHA Bahawalpur */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow-x: hidden;
}

/* Background Elements */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.1), rgba(253, 198, 44, 0.1));
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 65%;
    left: 85%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 85%;
    left: 15%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 25%;
    right: 12%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Left Side - Branding */
.auth-left {
    flex: 0 0 42%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(253, 198, 44, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 198, 44, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.brand-section {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 420px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo {
    margin-bottom: 2.5rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.brand-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.1); }
}

.brand-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.brand-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s ease;
    animation: slideInLeft 0.6s ease-out;
    animation-delay: var(--delay, 0s);
}

.feature-item:nth-child(1) { --delay: 0.2s; }
.feature-item:nth-child(2) { --delay: 0.4s; }
.feature-item:nth-child(3) { --delay: 0.6s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 1.4rem;
    color: var(--accent-color);
    width: 28px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.feature-item span {
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Right Side - Form */
.auth-right {
    flex: 0 0 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.auth-form-container {
    width: 100%;
    max-width: 550px;
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(234, 85, 71, 0.08);
    animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Login Toggle */
.login-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.4rem;
    margin-bottom: 2rem;
    gap: 0.3rem;
}

.toggle-btn {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(234, 85, 71, 0.25);
    transform: translateY(-1px);
}

.toggle-btn i {
    font-size: 0.85rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.login-method {
    display: none;
}

.login-method.active {
    display: block;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.4rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(234, 85, 71, 0.08);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(234, 85, 71, 0.08);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.form-checkbox:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 1.2rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 8px 25px rgba(234, 85, 71, 0.25);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(234, 85, 71, 0.35);
}

.auth-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.auth-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.auth-divider span {
    background: white;
    padding: 0 1.2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Support Section */
.auth-support {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.auth-support p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.support-contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.support-link:hover {
    background: rgba(234, 85, 71, 0.08);
    transform: translateY(-1px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        overflow-x: hidden;
    }
    
    .auth-left {
        flex: none;
        min-height: 40vh;
        padding: 2.5rem 1.5rem;
    }
    
    .auth-right {
        flex: none;
        padding: 1.5rem;
    }
    
    .auth-form-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 1.2rem;
    }
    
    .brand-features {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.6rem;
        min-width: 120px;
    }
    
    .feature-item:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

@media (max-width: 768px) {
    .auth-right {
        padding: 1rem;
    }
    
    .auth-form-container {
        padding: 2.5rem;
        margin: 0.5rem;
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .brand-logo img {
        max-width: 140px;
    }
    
    .support-contacts {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 2rem 1rem;
        min-height: 35vh;
    }
    
    .auth-form-container {
        padding: 2rem;
        border-radius: 16px;
        margin: 0.5rem;
    }
    
    .brand-logo img {
        max-width: 120px;
    }
    
    .brand-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.8rem;
    }
    
    .toggle-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .form-input {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .auth-btn {
        padding: 1rem 1.5rem;
    }
} 