/* SpaceDesk Login Page Styles - Dribbble Dark Theme */

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

body.login-page {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
    background: #000000;
}

/* Background video */
.login-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay/vignette - reduced darkness by ~25% */
.login-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Top-left logo and brand */
.login-header {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.login-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
}

.login-company-name {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Top center heading text */
.login-hero {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.login-hero h1 {
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.login-hero h2 {
    font-size: 16px;
    font-weight: 400;
    color: rgba(16, 185, 129, 0.9);
    letter-spacing: 1px;
    text-transform: none;
}

/* Login card container */
.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 2;
}

/* Glassmorphism login card - smaller and darker */
.login-card {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(16, 185, 129, 0.2),
        0 0 30px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.15));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

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

.login-card-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
}

.login-card-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}

/* Error alert */
.login-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-alert ul {
    margin: 0;
    padding-left: 18px;
}

.login-alert li {
    margin: 3px 0;
}

/* Form inputs - darker and minimal */
.login-form-group {
    margin-bottom: 16px;
    position: relative;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
    font-size: 16px;
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(16, 185, 129, 0.1);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
    font-size: 16px;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.password-toggle:focus {
    outline: none;
}

/* Forgot password link */
.login-forgot {
    text-align: right;
    margin-bottom: 20px;
}

.login-forgot a {
    color: rgba(16, 185, 129, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.login-forgot a:hover {
    color: rgba(16, 185, 129, 0.9);
}

/* Quick demo login (local/staging/testing only) */
.login-demo-section {
    margin-bottom: 20px;
}
.login-demo-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}
.login-demo-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    cursor: pointer;
}
.login-demo-select:focus {
    border-color: rgba(16, 185, 129, 0.4);
    outline: none;
}

/* Login button - teal gradient, not too tall */
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    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;
}

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

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(16, 185, 129, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Copyright footer - small and subtle */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.login-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.login-footer-logo {
    display: none; /* Remove logo from footer */
}

.login-footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    line-height: 1.4;
}

.login-footer-copyright {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
}

.login-footer-link {
    color: rgba(16, 185, 129, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer-link:hover {
    color: rgba(16, 185, 129, 0.9);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-hero {
        top: 60px;
    }
    
    .login-hero h1 {
        font-size: 26px;
    }
    
    .login-hero h2 {
        font-size: 22px;
    }
    
    .login-header {
        top: 20px;
        left: 20px;
    }
    
    .login-logo {
        height: 36px;
    }
    
    .login-company-name {
        font-size: 14px;
    }
    
    .login-card {
        padding: 28px 20px;
        max-width: 340px;
        border-radius: 18px;
    }
    
    .login-card-header h3 {
        font-size: 20px;
    }
    
    .login-card-subtitle {
        font-size: 12px;
    }
    
    .login-footer {
        bottom: 16px;
        font-size: 10px;
    }
    
    .login-footer-logo {
        height: 20px;
    }
    
    .login-footer-text {
        font-size: 10px;
    }
    
    .login-footer-copyright {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .login-hero {
        top: 50px;
    }
    
    .login-hero h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .login-hero h2 {
        font-size: 13px;
    }
    
    .login-card {
        padding: 24px 18px;
        max-width: 320px;
    }
    
    .login-input {
        padding: 11px 12px 11px 40px;
        font-size: 13px;
    }
    
    .login-input-icon {
        font-size: 15px;
        left: 12px;
    }
    
    .login-btn {
        padding: 11px;
        font-size: 14px;
    }
}

/* Ensure video doesn't scroll */
@media (max-width: 768px) {
    .login-video-bg {
        position: fixed;
    }
}
