/* ========================================
   AUTHENTICATION PAGES
   Login, Register, Forgot Password
======================================== */

:root {
    --primary-indigo: #4F46E5;
    --accent-pink: #EC4899;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #EC4899 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* ========================================
   AUTH CONTAINER
======================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Left Side - Form */
.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    position: relative;
    z-index: 2;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
    animation: slideInLeft 0.6s ease;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.auth-logo-icon {
    font-size: 48px;
}

.auth-logo-text {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 17px;
    color: #64748B;
    margin-bottom: 35px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94A3B8;
    transition: all 0.3s ease;
}

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

.form-input-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-input-toggle:hover {
    color: var(--primary-indigo);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 15px;
    color: #64748B;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-indigo);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--accent-pink);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

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

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: white;
    color: #334155;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-secondary:hover {
    border-color: var(--primary-indigo);
    background: #F8FAFC;
}

.btn-google {
    background: #EA4335;
    color: white;
    border: none;
}

.btn-google:hover {
    background: #D93025;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.auth-divider span {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 500;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: #64748B;
}

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

.auth-footer a:hover {
    color: var(--accent-pink);
}

/* Right Side - Graphics */
.auth-right {
    flex: 1;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-graphic {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: floatAnimation 3s ease-in-out infinite;
}

.auth-graphic-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: bounceAnimation 2s ease-in-out infinite;
}

.auth-graphic h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-graphic p {
    font-size: 19px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Decorative Elements */
.auth-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: floatRandom 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

/* Success Message */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22C55E;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #16A34A;
    animation: slideDown 0.5s ease;
}

.success-message i {
    font-size: 22px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #EF4444;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #DC2626;
    animation: shake 0.5s ease;
}

.error-message i {
    font-size: 22px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounceAnimation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes floatRandom {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(40px, 10px) rotate(270deg);
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .auth-right {
        padding: 40px;
    }
    
    .auth-graphic h2 {
        font-size: 36px;
    }
    
    .auth-graphic p {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .auth-right {
        display: none;
    }
    
    .auth-left {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .auth-header p {
        font-size: 15px;
    }
    
    .auth-logo-icon {
        font-size: 40px;
    }
    
    .auth-logo-text {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 20px 15px;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .form-input {
        padding: 14px 18px 14px 45px;
        font-size: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px;
        font-size: 16px;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px 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); }
}
