/**
 * Fuel Genius Login Styles
 * Modern, clean login interface
 */

/* Reset and Base Styles */
.fuel-genius-login-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fuel-genius-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Login Container */
.fuel-genius-login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

/* Login Card */
.fuel-genius-login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

/* Brand Section */
.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.brand-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.brand-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.login-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Welcome Section */
.login-welcome {
    text-align: center;
    margin-bottom: 32px;
}

.login-welcome h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-welcome p {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

/* Alert Messages */
.fg-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.fg-alert.alert-error {
    background-color: #fee;
    color: #c53030;
    border-left: 4px solid #fc8181;
}

.fg-alert.alert-success {
    background-color: #f0fff4;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.alert-icon {
    flex-shrink: 0;
    font-size: 18px;
}

/* Form Styles */
.fg-login-form {
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}

.form-group label svg {
    display: none;
}

.fg-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.fg-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fg-input::placeholder {
    color: #a0aec0;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
    z-index: 10;
}

.password-input-wrapper .fg-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: auto;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4a5568;
    user-select: none;
    position: relative;
    z-index: 10;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.checkbox-custom {
    display: none;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Button */
.fg-btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.fg-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.fg-btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-flex;
}

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

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

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}

.login-footer p {
    font-size: 14px;
    color: #718096;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Features Section */
.login-features {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4a5568;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    color: #48bb78;
    flex-shrink: 0;
}

/* Background Shapes - Simplified */
.login-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.login-bg-shapes .shape {
    position: absolute;
    background: white;
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -100px;
}

/* Responsive */
@media (max-width: 640px) {
    .fuel-genius-login-wrapper {
        padding: 20px;
    }

    .fuel-genius-login-card {
        padding: 36px 28px;
    }

    .login-brand h1 {
        font-size: 24px;
    }

    .login-welcome h2 {
        font-size: 20px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Fix for input icons */
.input-icon {
    display: none !important;
}
