@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #00d458 0%, #0da141 100%);
    --secondary-gradient: linear-gradient(135deg, #26da50 0%, #19d235 100%);
    --success-gradient: linear-gradient(135deg, #00ff5e 0%, #00ff5e 100%);
    --accent-cyan: #000000;
    --accent-blue: #000000;
    --light-cyan: #000000;
    --dark-blue: #000000;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.bg-login {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #00d458 0%, #0da141 50%, #01579B 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Particles */
body.bg-login::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Floating Orbs */
.floating-orbs {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.orb:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 134, 0.4), rgba(0, 188, 212, 0.1));
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(13, 71, 161, 0.4), rgba(13, 71, 161, 0.1));
    animation-delay: 5s;
}

.orb:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(38, 198, 218, 0.3), rgba(38, 198, 218, 0.05));
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Main Container */
.authentication-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

/* Glass Card Effect */
.card.shadow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 188, 212, 0.1);
    border-radius: 24px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.shadow:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 48px 0 rgba(31, 38, 135, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(0, 188, 212, 0.3),
        0 0 30px rgba(0, 188, 212, 0.2);
}

/* Card Body */
.card-body {
    position: relative;
    z-index: 2;
}

/* Typography */
.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 400;
    animation: fadeInDown 0.6s ease-out 0.3s both;
}

/* Form Labels */
.form-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* Input Fields */
.form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

.form-control.is-invalid {
    border-color: rgba(245, 87, 108, 0.8);
    background: rgba(245, 87, 108, 0.1);
}

/* Input Icons */
.search-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control:focus ~ .search-icon,
.form-control:focus + .position-relative .search-icon {
    color: rgba(255, 255, 255, 1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00BCD4 0%, #0D47A1 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 188, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 188, 212, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #26C6DA 0%, #1976D2 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(0, 188, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Links */
a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
    transition: width 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

a:hover::after {
    width: 100%;
}

/* Error Messages */
.text-danger {
    color: #ffcccb !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Alert Component */
.alert {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spacing Adjustments */
.row.g-3 > * {
    animation: fadeInUp 0.6s ease-out both;
}

.row.g-3 > *:nth-child(1) { animation-delay: 0.4s; }
.row.g-3 > *:nth-child(2) { animation-delay: 0.5s; }
.row.g-3 > *:nth-child(3) { animation-delay: 0.6s; }
.row.g-3 > *:nth-child(4) { animation-delay: 0.7s; }
.row.g-3 > *:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.75rem;
    }
    
    .authentication-content {
        padding: 1rem 0.5rem;
    }
    
    .card.shadow {
        border-radius: 20px !important;
    }
    
    .orb {
        display: none;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.form-control:disabled {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
