@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0c0c0c;
    overflow: hidden;
    height: 100vh;
    color: #ffffff;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0c0c0c 100%);
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 420px;
    max-width: 90vw;
}

.login-window {
    background: rgba(25, 25, 30, 0.95);
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.window-header {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-bottom: 1px solid #4a4a4a;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-title {
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 500;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.maximize {
    background: #28ca42;
}

.control-btn.close {
    background: #ff5f56;
}

.control-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.window-content {
    padding: 25px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.login-subtitle {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: #b0b0b0;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(40, 40, 45, 0.8);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 12px 14px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #0078d4;
    box-shadow:
        0 0 0 2px rgba(0, 120, 212, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    background: rgba(40, 40, 45, 1);
}

.form-input::placeholder {
    color: #666;
    font-style: italic;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #0078d4;
    background: rgba(0, 120, 212, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.custom-checkbox {
    position: relative;
    cursor: pointer;
}

.checkbox-input {
    opacity: 0;
    position: absolute;
}

.checkbox-mark {
    width: 16px;
    height: 16px;
    background: rgba(40, 40, 45, 0.8);
    border: 1px solid #555;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-mark {
    background: #0078d4;
    border-color: #0078d4;
}

.checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-input:checked + .checkbox-mark::after {
    opacity: 1;
}

.checkbox-label {
    font-size: 12px;
    color: #b0b0b0;
    user-select: none;
}

.login-btn {
    width: 100%;
    background: linear-gradient(180deg, #0086e6 0%, #0078d4 100%);
    border: 1px solid #0078d4;
    border-radius: 4px;
    color: white;
    padding: 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    background: linear-gradient(180deg, #1a96f0 0%, #0086e6 100%);
    box-shadow:
        0 4px 12px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

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

.login-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(0, 120, 212, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.login-btn.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #444, transparent);
}

.divider span {
    padding: 0 15px;
}

.social-login {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    background: rgba(40, 40, 45, 0.8);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #b0b0b0;
}

.social-btn:hover {
    border-color: #777;
    background: rgba(40, 40, 45, 1);
    color: #ffffff;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #0078d4;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #1a96f0;
    text-shadow: 0 0 5px rgba(0, 120, 212, 0.3);
}

.status-bar {
    background: rgba(20, 20, 25, 0.9);
    border-top: 1px solid #4a4a4a;
    padding: 6px 12px;
    font-size: 10px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(25, 25, 30, 0.95);
    border: 1px solid #4a4a4a;
    border-radius: 6px;
    padding: 12px 16px;
    color: white;
    font-size: 12px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 3px solid #28a745;
}

.notification.error {
    border-left: 3px solid #dc3545;
}

@media (max-width: 480px) {
    .login-container {
        width: 95vw;
    }
    .window-content {
        padding: 20px;
    }
}