/**
 * Login Page Styles - Dark Minimalist Design
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #333;
    background-size: cover;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

/* Login Box */
.login-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header svg {
    display: block;
    margin: 0 auto 20px auto;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 10px 0;
    color: #fff;
}

.login-header .subtitle {
    font-size: 14px;
    font-weight: 300;
    color: #d6d6d6;
    margin: 0;
}

/* Login Form */
.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #d6d6d6;
}

.form-group input {
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    color: #fff;
    transition: background 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.5);
}

.form-group input::placeholder {
    color: #696969;
}

/* Error Message */
.error-message {
    background: rgba(255, 0, 0, 0.2);
    border-left: 3px solid #ff4444;
    color: #ffcccc;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 48px;
    background-color: #8ee070;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: #a4ff8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 224, 112, 0.3);
}

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

.btn-login:disabled {
    background-color: #6ba856;
    cursor: not-allowed;
    transform: none;
}

.btn-login .btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-header svg {
        height: 40px;
        width: 40px;
    }
}

/* WebKit Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.4) inset;
    transition: background-color 5000s ease-in-out 0s;
}
