/* Admin Portal - Clean Light Theme */
:root {
    --primary-color: #2563eb;
    /* Professional Blue */
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --input-border: #cbd5e1;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.03) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    padding: 2rem 3.5rem;
}

.brand-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    width: 72px;
    height: 72px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.brand-logo {
    width: 48px;
    height: auto;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

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

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.9rem 1rem 0.9rem 3.2rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

.input-wrapper input:focus {
    outline: none;
}

/* Fix for browser autofill background cutting borders */
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.password-toggle {
    background: none;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked~.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.custom-checkbox input:checked~.checkmark::after {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

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

.alert {
    padding: 1rem;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #be123c;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Background Blobs - Very Subtle in Light Mode */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.04;
    z-index: 0;
}

.blob-1 {
    top: -200px;
    left: -200px;
}

.blob-2 {
    bottom: -200px;
    right: -200px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2.5rem 2rem;
    }
}