/* Robot Safety Center — shared Auth Server account pages (login-themed shell) */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 2vh, 40px);
    overflow: auto;
    background:
        radial-gradient(ellipse at center bottom, transparent 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.85) 70%, rgba(255, 255, 255, 0.95) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0.3) 60%, transparent 100%),
        linear-gradient(-45deg, #1E3A8A, #3B82F6, #F59E0B, #1E3A8A);
    background-size: 100% 100%, 100% 100%, 100% 100%;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.08);
    padding: clamp(32px, 4vw, 56px);
    max-width: clamp(380px, 40vw, 500px);
    min-width: 320px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: slideUpCard 0.4s ease-out;
}

@keyframes slideUpCard {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    text-align: center;
    margin-bottom: 28px;
}

.brand-logo h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.8px;
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 50%, #0f1419 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1E3A8A;
    margin: 0 0 8px 0;
}

.header-subtle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.workspace-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1E3A8A;
    margin-bottom: 24px;
    font-weight: 600;
}

.account-info-message {
    text-align: center;
    font-size: 15px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 24px 0;
}

.account-success-row {
    text-align: center;
    margin-bottom: 12px;
}

.account-success-row i {
    font-size: 46px;
    color: #059669;
}

.login-form {
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.error-message {
    color: #c53030;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.login-button {
    width: 100%;
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 50%, #0f1419 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-button:hover {
    background: linear-gradient(145deg, #374151 0%, #1f2937 50%, #111827 100%);
    transform: translateY(-1px);
}

a.login-button {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
}

.account-alt-link {
    text-align: center;
    margin-top: 12px;
}

.account-alt-link a {
    color: #1E3A8A;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.account-alt-link a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
    }
    .input-field {
        font-size: 16px !important;
    }
}
