/* ===================================
   AUTH PAGES ENHANCEMENTS (LOGIN & SIGNUP)
   Beautiful, Responsive, Creative Theme
   Matching Homepage Colors & Style
   =================================== */

/* ===================================
   AUTH CONTAINER ENHANCEMENTS
   =================================== */

.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 50%, 
        #f093fb 100%);
}

/* Animated Background Particles */
.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 60%);
    animation: particlesFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particlesFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

/* Floating Shapes */
.auth-container::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.1),
        transparent 70%);
    border-radius: 50%;
    animation: floatShape 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 50px) scale(1.2);
    }
}

/* ===================================
   AUTH LEFT SIDE - BRANDING
   =================================== */

.auth-left {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.08)) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

/* Left Side Gradient Overlay */
.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.08) 50%,
        rgba(240, 147, 251, 0.05) 100%);
    pointer-events: none;
}

/* Left Side Animated Border */
.auth-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

/* Auth Branding Container */
.auth-branding {
    position: relative;
    z-index: 1;
    animation: fadeInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo Enhancement */
.auth-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    width: fit-content;
}

.auth-left .logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-left .logo:hover::before {
    opacity: 1;
}

.auth-left .logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    }
}

.auth-left .logo:hover i {
    animation: logoSpin 0.6s ease-in-out;
}

@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(360deg) scale(1.1); }
}

.auth-left .logo span {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Auth Branding Title */
.auth-branding h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-branding > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* Auth Features List */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.auth-feature::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;
}

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

.auth-feature:hover {
    transform: translateX(10px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-feature i {
    font-size: 1.25rem;
    color: #34d399;
    filter: drop-shadow(0 2px 4px rgba(52, 211, 153, 0.3));
    transition: all 0.3s ease;
}

.auth-feature:hover i {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 4px 8px rgba(52, 211, 153, 0.5));
}

.auth-feature span {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================
   AUTH RIGHT SIDE - FORM
   =================================== */

.auth-right {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.9)) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* Right Side Pattern Overlay */
.auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Form Container */
.auth-form-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: fadeInRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: textShimmer 3s ease infinite;
}

@keyframes textShimmer {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.5));
    }
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Form Group */
.form-group {
    position: relative;
    animation: slideInUp 0.6s ease backwards;
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.15s; }
.auth-form .form-group:nth-child(3) { animation-delay: 0.2s; }
.auth-form .form-group:nth-child(4) { animation-delay: 0.25s; }
.auth-form .form-group:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #667eea;
    font-size: 1rem;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-wrapper input:focus + i,
.input-wrapper:has(input:focus) i {
    color: #764ba2;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(118, 75, 162, 0.4));
}

/* Form Inputs */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem !important;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: white !important;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.2),
        0 4px 8px rgba(118, 75, 162, 0.1),
        inset 0 0 0 1px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder {
    color: #94a3b8;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #764ba2;
    transform: scale(1.1);
}

/* Remember Me Checkbox */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    animation: fadeIn 0.6s ease 0.35s backwards;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.remember-me label {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: #764ba2;
}

/* Submit Button */
.auth-form button[type="submit"],
.auth-form .btn-primary {
    width: 100%;
    padding: 1rem !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease 0.4s backwards;
}

.auth-form button[type="submit"]::before,
.auth-form .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-form button[type="submit"]:hover::before,
.auth-form .btn-primary:hover::before {
    opacity: 1;
}

.auth-form button[type="submit"]:hover,
.auth-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 16px 32px rgba(102, 126, 234, 0.4),
        0 8px 16px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-form button[type="submit"]:active,
.auth-form .btn-primary:active {
    transform: translateY(-1px);
}

.auth-form button[type="submit"] span,
.auth-form .btn-primary span {
    position: relative;
    z-index: 1;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.25rem 0;
    text-align: center;
    animation: fadeIn 0.6s ease 0.45s backwards;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(102, 126, 234, 0.3),
        transparent);
}

.auth-divider span {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Validation Messages */
.validation-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.validation-message.valid {
    color: #10b981;
}

.validation-message.invalid {
    color: #ef4444;
}

.input-wrapper.valid input {
    border-color: #10b981 !important;
}

.input-wrapper.invalid input {
    border-color: #ef4444 !important;
}

/* Social Login Buttons */
.social-login {
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.6s ease 0.5s backwards;
}

.social-btn {
    flex: 1;
    padding: 0.875rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7)) !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.social-btn i {
    font-size: 1.125rem;
}

/* Auth Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    animation: fadeIn 0.6s ease 0.55s backwards;
}

.auth-footer p {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-footer a:hover {
    color: #764ba2;
}

/* Alert Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.125rem;
}

.alert-error {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.15),
        rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.alert-success {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.15),
        rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.alert-info {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15),
        rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 2rem 1.5rem;
    }
    
    .auth-branding h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-form-container {
        max-width: 100%;
    }
    
    .social-login {
        flex-direction: column;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 3px;
    border-radius: 8px;
}
