@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: rgb(1, 26, 58);
    --primary-light: #41c6e7;
    --bg-primary: var(--primary-dark);
    --bg-secondary: rgba(1, 26, 58, 0.95);
    --accent: var(--primary-light);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    color: var(--text-primary);
}



/* Digital particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    animation: digital-particle 6s linear infinite;
}

@keyframes digital-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(0);
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Logo section */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fade-in-up 1s ease-out;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    border: 2px solid var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 0 30px rgba(65, 198, 231, 0.3),
        inset 0 0 20px rgba(65, 198, 231, 0.1);
    animation: logo-glow 3s ease-in-out infinite;
}

.ai-symbol {
    position: relative;
    width: 40px;
    height: 40px;
}

.neural-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: neural-pulse 2s ease-in-out infinite;
}

.neural-node:nth-child(1) {
    top: 5px;
    left: 16px;
    animation-delay: 0s;
}

.neural-node:nth-child(2) {
    bottom: 5px;
    left: 5px;
    animation-delay: 0.5s;
}

.neural-node:nth-child(3) {
    bottom: 5px;
    right: 5px;
    animation-delay: 1s;
}

.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    animation: data-flow 2s ease-in-out infinite;
}

.neural-connection:nth-child(4) {
    top: 20px;
    left: 8px;
    width: 20px;
    transform: rotate(-45deg);
}

.connection-2 {
    top: 20px;
    right: 8px;
    width: 20px;
    transform: rotate(45deg);
    animation-delay: 1s;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes data-flow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes logo-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(65, 198, 231, 0.3), inset 0 0 20px rgba(65, 198, 231, 0.1); }
    50% { box-shadow: 0 0 50px rgba(65, 198, 231, 0.5), inset 0 0 30px rgba(65, 198, 231, 0.2); }
}

.logo-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.ai-accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Login card */
.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    animation: fade-in-up 1s ease-out 0.3s both;
}

.card-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    border-radius: 16px;
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-content {
    position: relative;
    background: rgba(1, 26, 58, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(65, 198, 231, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.welcome-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Login form */
.login-form {
    width: 100%;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    z-index: 2;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(65, 198, 231, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(65, 198, 231, 0.3);
}

.input-wrapper input:focus + .input-border {
    transform: scaleX(1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper input:valid ~ .input-icon {
    color: var(--accent);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

/* Error message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: error-shake 0.5s ease-in-out;
}

.error-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Sign in button */
.signin-btn {
    position: relative;
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.signin-btn:hover .btn-bg {
    left: 100%;
}

.signin-btn:hover {
    color: var(--primary-dark);
    background: var(--accent);
    box-shadow: 0 0 30px rgba(65, 198, 231, 0.5);
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.signin-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(65, 198, 231, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 0;
}

.signin-btn:hover .btn-glow {
    width: 200px;
    height: 200px;
}

/* Security info */
.security-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(65, 198, 231, 0.05);
    border: 1px solid rgba(65, 198, 231, 0.2);
    border-radius: 8px;
}

.security-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.security-icon svg {
    width: 100%;
    height: 100%;
}

.security-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.security-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.security-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Footer info */
.footer-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    animation: fade-in-up 1s ease-out 0.6s both;
}



/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 2.2rem;
    }
    
    .card-content {
        padding: 2rem 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .tech-shape {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .logo-section {
        margin-bottom: 2rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .footer-info {
        gap: 1rem;
        font-size: 0.75rem;
    }
}