/* Grafana-Inspired Login Form Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1f1f23;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #181b1f;
    border-radius: 4px;
    padding: 48px 40px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d2d30;
    position: relative;
}

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

.login-header h1 {
    font-size: 28px;
    font-weight: 500;
    color: #d8d9da;
    letter-spacing: -0.3px;
}

.messages {
    margin-bottom: 24px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.alert-success {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert i {
    font-size: 16px;
}

.login-form {
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #b7babc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.input-wrapper i {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-size: 14px;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #2d2d30;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #d8d9da;
    background: #1f1f23;
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #5794f2;
    background: #252529;
    box-shadow: 0 0 0 1px #5794f2;
}

.input-wrapper input::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 29px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #5794f2;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #b7babc;
    font-weight: 400;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #2d2d30;
    border-radius: 2px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    background: #1f1f23;
}

.checkbox-container:hover .checkmark {
    border-color: #5794f2;
}

.checkbox-container input:checked + .checkmark {
    background: #5794f2;
    border-color: #5794f2;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.forgot-password {
    color: #5794f2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #7ab8ff;
}

.login-btn {
    width: 100%;
    background: #5794f2;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: #3274d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    background: #1f5fbf;
}

.login-btn:focus {
    outline: 1px solid #5794f2;
    outline-offset: 2px;
}


.login-footer {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    margin-top: 24px;
}

.login-footer a {
    color: #5794f2;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #7ab8ff;
}

.login-footer span {
    margin: 0 8px;
    color: #4b5563;
}

/* Background Decoration - Subtle Grafana style */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: #5794f2;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -10%;
    left: -10%;
    filter: blur(60px);
}

.circle-2 {
    width: 250px;
    height: 250px;
    bottom: -10%;
    right: -10%;
    filter: blur(60px);
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    filter: blur(60px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 4px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
}

@media (max-width: 320px) {
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
