/* Login styling */
:root {
    --primary: #0d002e;          /* Midnight Purple - Main brand color */
    --primary-light: #1a0a4f;     /* Lighter purple for hover states */
    --primary-dark: #070018;      /* Darker shade for depth */
    --primary-subtle: #e9e6f0;    /* Very light purple for backgrounds */
    
    /* Accent Colors */
    --accent-orange: #fd492e;     /* Vibrant orange for CTAs and highlights */
    --accent-pink: #ff0038;       /* Bold pink for status indicators/success */
    
    /* Status Colors (Brand-aligned) */
    --success: #ff0038;           /* Pink for success/completion (replacing green) */
    --info: #1a0a4f;              /* Light purple for information/progress */
    --warning: #fd492e;           /* Orange for warnings/notifications */
    --danger: #d9304e;            /* Darker pink for errors/danger */
    
    --text-dark: #1A1A2E;         /* Dark blue-black for primary text */
    --text-muted: #6c757d;        /* Muted gray for secondary text */
    --border-color: #dee2e6;      /* Soft gray for borders */
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #150846 0%, var(--primary) 100%);
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect x='40' y='50' width='80' height='3' rx='1.5'/%3E%3Ccircle cx='150' cy='50' r='4'/%3E%3Crect x='180' y='50' width='40' height='3' rx='1.5'/%3E%3Crect x='25' y='90' width='30' height='3' rx='1.5'/%3E%3Crect x='65' y='90' width='55' height='3' rx='1.5'/%3E%3Ccircle cx='135' cy='90' r='3'/%3E%3Crect x='185' y='130' width='65' height='3' rx='1.5'/%3E%3Ccircle cx='175' cy='130' r='3'/%3E%3Crect x='45' y='130' width='120' height='3' rx='1.5'/%3E%3Crect x='80' y='170' width='30' height='3' rx='1.5'/%3E%3Ccircle cx='65' cy='170' r='5'/%3E%3Crect x='125' y='170' width='85' height='3' rx='1.5'/%3E%3Ccircle cx='220' cy='170' r='3'/%3E%3Crect x='150' y='210' width='105' height='3' rx='1.5'/%3E%3Ccircle cx='140' cy='210' r='4'/%3E%3Crect x='20' y='210' width='110' height='3' rx='1.5'/%3E%3Crect x='55' y='250' width='60' height='3' rx='1.5'/%3E%3Ccircle cx='125' cy='250' r='3'/%3E%3Crect x='135' y='250' width='45' height='3' rx='1.5'/%3E%3Ccircle cx='190' cy='250' r='5'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { 
        opacity: 0.6;
        transform: translateX(0px);
    }
    100% { 
        opacity: 0.9;
        transform: translateX(20px);
    }
}

/* Floating Shapes - Subtle Soundwave Elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-pink));
    border-radius: 2px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    top: 70%;
    right: 20%;
    animation-delay: 3s;
}

.shape-3 {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), transparent);
    border-radius: 2px;
    bottom: 30%;
    left: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scaleX(1);
        opacity: 0.05;
    }
    50% { 
        transform: translateY(-10px) scaleX(1.2);
        opacity: 0.08;
    }
}

.login-container {
    width: 100%;
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.login-logo {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    display: block;
    margin: 0 auto 20px auto;
}



.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    min-height: auto;
    margin: 0;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-orange) 50%, var(--accent-pink) 100%);
    border-radius: 20px 20px 0 0;
}


.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--primary);
    position: relative;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-pink));
    border-radius: 2px;
}

.form-control {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 0, 46, 0.1);
    background: white;
    transform: translateY(-2px);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #d60030 100%);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    transition: left 0.3s ease;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #ff1a4d 0%, #ff0038 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 56, 0.3);
}

/* Social buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.btn-social img {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    object-fit: contain;
}

/* Microsoft logo specific styling */
.btn-microsoft img {
    width: 1rem;
    height: 1rem;
}

/* Google logo specific styling */
.btn-google img {
    width: 1.5rem;
    height: 1.5rem;
}

/* Divider styling */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    border-radius: 20px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 0 1rem;
    }
    
    .logo-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .login-logo {
        width: 200px;
        height: 200px;
    }
    
    .login-card {
        padding: 1.5rem;
        margin: 0;
        max-width: 100%;
        border-radius: 16px;
    }
    
    .shape-1, .shape-2, .shape-3 {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.25rem;
        border-radius: 12px;
        max-width: 95%;
    }
    
    .login-logo {
        width: 160px;
        height: 160px;
    }
    
    .logo-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Dark text for form elements on light background */
.login-card .form-control,
.login-card .form-label,
.login-card .form-check-label {
    color: var(--text-dark);
}

.login-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
    line-height: 1.4;
}

.login-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-card a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}
