@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 3rem;
}

.logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-favicon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.login-title {
    color: #1a202c;
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0;
}

/* Make the login display name visually consistent with other modal/section headings */


.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.875rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #a0aec0;
}

.remember-me-group {
    margin-bottom: 1rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.remember-me-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.remember-me-label span {
    user-select: none;
}

.login-button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.login-button:hover {
    background: #2c5282;
}

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

.error {
    color: #e53e3e;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
}

.info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: left;
}

.info a {
    color: #3182ce;
    text-decoration: none;
}

.info a:hover {
    text-decoration: underline;
}

.info code {
    background: #edf2f7;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
}

.login-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: center;
}

.login-note p {
    margin: 0 0 0.75rem 0;
}

.login-note p:last-child {
    margin-bottom: 0;
}

.login-note code {
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
    color: #2d3748;
    display: inline-block;
    margin: 0.5rem 0;
}

.github-link {
    margin-top: 1rem !important;
    padding-top: 0.75rem;
    /* border-top: 1px solid #e2e8f0; */
}

.github-link a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.github-link a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.github-link i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 800px) {
    body {
        padding: 16px;
    }
    
    .login-header {
        margin-bottom: 2rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-favicon {
        width: 40px;
        height: 40px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .info {
        font-size: 0.8125rem;
    }
    
    .login-note {
        font-size: 0.8125rem;
        margin-top: 1.5rem;
        padding: 0.875rem;
    }
    
    .login-note code {
        font-size: 0.75rem;
    }
}
