/* Indian-Inspired Auth Design */
:root {
    --saffron: #26b874;;
    --white: #FFFFFF;
    --green: #0e884d;;
    --navy-blue: #000080;
    --india-orange: #09a562;;
    --india-teal: #00897B;
    --warm-sand: #d3f5ee;
    --deep-maroon: #012503;
    --golden: #FFD700;
    --light-saffron: #cef3d3;
}

body {
    background: linear-gradient(135deg, var(--light-saffron) 0%, var(--warm-sand) 100%);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Decorative Pattern Background */
.auth-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 153, 51, 0.03) 35px, rgba(255, 153, 51, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(19, 136, 8, 0.03) 35px, rgba(19, 136, 8, 0.03) 70px);
    z-index: -1;
    pointer-events: none;
}

/* Card Containers */
.login-card, .welcome-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Login Card Styling */
.login-card {
    background: linear-gradient(to bottom right, #FFFFFF 0%, #FFFAF5 100%);
    border-top: 5px solid var(--saffron);
    position: relative;
}

/* Decorative Corner Accent */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-orange) 100%);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--green) 0%, var(--india-teal) 100%);
    opacity: 0.1;
    border-radius: 0 100% 0 0;
}

.login-card .card-body {
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* Title Styling */
.login-card .card-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-orange) 50%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    position: relative;
}

.login-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    border-radius: 3px;
}

/* Form Labels */
.login-card .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Form Controls */
.login-card .form-control {
    padding: 14px 18px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    background-color: #FAFAFA;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #333;
}

.login-card .form-control:focus {
    border-color: var(--saffron);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
    outline: none;
}

.login-card .form-control::placeholder {
    color: #999;
}

/* CAPTCHA Container */
.login-card .captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 2px solid #E5E5E5;
}

.login-card .captcha img {
    border-radius: 8px;
    width: 140px;
    height: auto;
    border: 2px solid var(--saffron);
}

.login-card .captcha input {
    flex: 1;
    max-width: 200px;
    border: 2px solid #E5E5E5 !important;
    background: #FAFAFA !important;
}

.captcha-container .btn-secondary {
    background: linear-gradient(135deg, var(--saffron), var(--india-orange));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.captcha-container .btn-secondary:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

/* Alert Styling */
.login-card .alert-danger {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.login-card .alert-success {
    background: linear-gradient(135deg, var(--green) 0%, var(--india-teal) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    margin: 20px 0;
    font-size: 14px;
}

.login-card .alert-warning {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-orange) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
}

/* Primary Button */
.login-card .btn-primary {
    padding: 16px;
    width: 100%;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-orange) 100%);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-card .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.4);
}

.login-card .btn-primary:active {
    transform: translateY(0);
}

/* OR Divider */
.login-card .or-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    position: relative;
    margin: 25px 0;
    font-weight: 500;
}

.login-card .or-text::before,
.login-card .or-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 2px;
    background: linear-gradient(90deg, transparent, #E5E5E5, transparent);
}

.login-card .or-text::before {
    left: 0;
}

.login-card .or-text::after {
    right: 0;
}

/* Social Login Buttons */
.login-card .social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.login-card .social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-card .social-btn.btn-outline-danger {
    background: white;
    color: #DB4437;
    border-color: #DB4437;
}

.login-card .social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.login-card .social-btn.btn-outline-danger:hover {
    background: #DB4437;
    color: white;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-orange) 50%, var(--deep-maroon) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.welcome-card .card-body {
    padding: 50px 40px;
    position: relative;
    z-index: 1;
}

.welcome-card .card-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-card .card-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.welcome-card .btn-outline-primary {
    padding: 14px 32px;
    background: white;
    color: var(--saffron);
    border: 2px solid white;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-card .btn-outline-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Resend Verification Card */
.resend-verification .card {
    background: linear-gradient(to bottom, #FFF8F0, white);
    border: 2px solid var(--saffron);
    border-radius: 12px;
}

/* Forgot Password Link */
.login-card a {
    color: var(--saffron);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-card a:hover {
    color: var(--india-orange);
    text-decoration: underline;
}

/* Checkbox Styling */
.login-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--saffron);
    cursor: pointer;
}

.login-card label {
    cursor: pointer;
    user-select: none;
}

/* Username Availability Indicator */
#username-availability {
    font-size: 13px;
    font-weight: 500;
    padding: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }

    .login-card .card-body,
    .welcome-card .card-body {
        padding: 30px 25px;
    }

    .login-card .card-title {
        font-size: 26px;
    }

    .welcome-card .card-title {
        font-size: 28px;
    }

    .welcome-card .card-text {
        font-size: 14px;
    }

    .login-card .form-control {
        font-size: 14px;
        padding: 12px 15px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .login-card .captcha img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .login-card .captcha input {
        max-width: 100%;
    }

    .login-card .btn-primary {
        padding: 14px;
        font-size: 15px;
    }

    .row.min-vh-100 {
        min-height: auto !important;
        padding: 20px 0;
    }

    .col-12.col-md-6:first-child {
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) {
    .welcome-card {
        min-height: 600px;
        display: flex;
        align-items: center;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.login-card .btn-primary:disabled {
    background: linear-gradient(90deg, #CCC 0%, #E5E5E5 50%, #CCC 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    cursor: not-allowed;
}

/* Decorative Elements */
.login-card .form-group {
    position: relative;
}

.login-card .form-group::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 38px;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--saffron), var(--green));
    border-radius: 3px;
    transition: height 0.3s ease;
}

.login-card .form-group:focus-within::before {
    height: 48px;
}

/* Micro-interactions */
.login-card .form-control:valid {
    border-color: var(--green);
}

.login-card .form-control:invalid:not(:placeholder-shown) {
    border-color: #FF6B6B;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .welcome-card,
    .social-login {
        display: none;
    }
}