/* Michelangelo Bot Login Styles */
:root {
    --primary: #ff9f1c;
    --primary-hover: #ffb347;
    --accent: #8ed8ff;
    --accent-strong: #4ec7ff;
    --bg-dark: #06080d;
    --bg-soft: #101826;
    --card-bg: rgba(9, 13, 21, 0.88);
    --input-bg: rgba(255, 255, 255, 0.04);
    --text-main: #f8fafc;
    --text-dim: #9aa8bc;
    --error: #ff7b72;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
}

.login-body {
    background:
        radial-gradient(circle at 20% 18%, rgba(142, 216, 255, 0.18), transparent 32%),
        radial-gradient(circle at 82% 14%, rgba(255, 159, 28, 0.2), transparent 28%),
        linear-gradient(145deg, #040507 0%, #0b0f17 55%, #111b2a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(142, 216, 255, 0.12);
    border-radius: 32px;
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 159, 28, 0.05) inset;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 159, 28, 0.1), transparent 34%),
        linear-gradient(315deg, rgba(78, 199, 255, 0.09), transparent 36%);
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    filter: drop-shadow(0 16px 28px rgba(78, 199, 255, 0.18));
}

.login-header h1 {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.login-header p {
    margin: 10px 0 0;
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 100%;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.error-banner {
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 123, 114, 0.1);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 123, 114, 0.16);
    display: none; /* Shown via JS */
}

.error-banner:not(:empty) {
    display: block;
}

.input-group input {
    width: 100%;
    padding: 15px 18px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(78, 199, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.options-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    font-size: 0.875rem;
}

.options-group--single {
    justify-content: flex-start;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-dim);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

.checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--text-dim);
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--accent);
}

.login-button {
    background: linear-gradient(135deg, #ffb347 0%, #ff9f1c 100%);
    color: #14161a;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 18px 30px rgba(255, 159, 28, 0.22);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(255, 159, 28, 0.3);
    background: linear-gradient(135deg, #ffc264 0%, #ff9f1c 100%);
}

.login-footer {
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.privacy-link {
    display: block;
    margin-top: 16px;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .login-card {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .options-group {
        flex-direction: column;
        align-items: flex-start;
    }
}
