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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Three.js Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 460px;
    margin: 60px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 32px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shield-icon {
    width: 18px;
    height: 18px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 0.875rem;
    color: #a5f3fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #ffffff;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    font-family: inherit;
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #60a5fa;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.fa-regular {
    position: absolute;
    top: 55px;
    right: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: color 0.3s;
}

.fa-regular:hover {
    color: white;
}

.login-button {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    padding: 14px 0;
    text-align: center;
    background: linear-gradient(135deg, #458FF6, #2563EB);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

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

.signup-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.signup-link {
    color: #a5f3fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .login-container {
        margin: 40px auto;
    }
    
    .login-card {
        padding: 32px 24px;
    }
}