/* login.css - Inspired by Turnkey Security website branding */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0A192F 0%, #003366 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* Particle Animation Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    background: #0A192F;
    padding: 40px 20px 30px;
    text-align: center;
    color: white;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.brand-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.tagline {
    font-size: 14px;
    color: #64B5F6;
    font-weight: 300;
}

/* Login Form */
.login-form {
    padding: 40px 30px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 8px;
    color: #0A192F;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: #FF6B00;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 14px;
    background: #FF6B00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button:hover {
    background: #E55D00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.error-message {
    margin-top: 20px;
    padding: 12px 15px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message i {
    font-size: 18px;
}

/* Loading Message */
.loading-message {
    margin-top: 20px;
    padding: 12px 15px;
    background: #e3f2fd;
    border: 1px solid #64B5F6;
    border-radius: 8px;
    color: #1976D2;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-message i {
    font-size: 18px;
}

/* Footer */
.login-footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 12px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }

    .logo-section {
        padding: 30px 20px 25px;
    }

    .logo {
        width: 60px;
    }

    .brand-name {
        font-size: 24px;
    }

    .tagline {
        font-size: 12px;
    }

    .login-form {
        padding: 30px 20px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .login-button {
        padding: 12px;
        font-size: 15px;
    }
}

/* Accessibility */
input:focus-visible {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for login page for consistency */
}

