/* login.css - Bitwarden 'Vault Locked' Theme */
:root {
    --bit-blue: #175ddc;
    --bit-blue-dark: #124ab1;
    --bit-bg: #ffffff;
    --bit-text-main: #1e293b;
    --bit-text-muted: #64748b;
    --bit-border: #cbd5e1;
    --bit-input-focus: #175ddc;
}

body.bitwarden-theme {
    background-color: var(--bit-bg);
    color: var(--bit-text-main);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Header Styling */
.bit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bit-mini-logo {
    height: 32px;
    width: auto;
}

.bit-brand {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--bit-blue);
    letter-spacing: -0.5px;
}

.bit-user-avatar {
    width: 36px;
    height: 36px;
    background: #cbd5e1;
    color: #475569;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Container & Animation */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.bit-content-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tow-container {
    animation: towIn 3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Illustration */
.safe-illustration {
    width: 115px;
    height: 115px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(23, 93, 220, 0.4);
    animation: neonBluePulse 3s infinite ease-in-out;
}

.bit-logo-main {
    width: 80px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

@keyframes neonBluePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(23, 93, 220, 0.3), 0 0 40px rgba(23, 93, 220, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(23, 93, 220, 0.6), 0 0 70px rgba(23, 93, 220, 0.3);
    }
}

/* Typography */
.bit-title {
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bit-text-main);
}

.bit-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--bit-blue);
    margin-bottom: 5px; /* Reduced for school name */
}

.bit-school-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bit-text-muted);
    margin-bottom: 30px;
}

/* Material Outlined Input */
.bit-login-form {
    width: 100%;
}

.material-group {
    position: relative;
    width: 100%;
    margin-bottom: 22px; /* Decreased slightly for better grouping */
    text-align: left;
}

.material-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: white;
    padding: 0 8px;
    font-size: 0.85rem;
    color: var(--bit-text-muted);
    z-index: 1;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.material-input {
    width: 100%;
    padding: 16px 45px 16px 15px;
    border: 2px solid var(--bit-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--bit-text-main);
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.material-input:focus {
    outline: none;
    border-color: var(--bit-input-focus);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--bit-text-muted);
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-bit-primary {
    width: 100%;
    padding: 16px;
    background: var(--bit-blue);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-bit-primary:hover {
    background: var(--bit-blue-dark);
}

.bit-separator {
    color: var(--bit-text-muted);
    font-size: 0.9rem;
}

.btn-bit-secondary {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--bit-blue);
    border: 2px solid var(--bit-blue);
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bit-secondary:hover {
    background: #f1f7ff;
}

/* Footer & Alerts */
.bit-footer {
    margin-top: 50px;
    font-size: 0.85rem;
    color: var(--bit-text-muted);
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
}

/* Animation */
@keyframes towIn {
    0% { transform: translateX(-120vw); }
    100% { transform: translateX(0); }
}

@media screen and (max-width: 480px) {
    .bit-header { padding: 15px; }
    .bit-brand { font-size: 1.25rem; }
    .bit-title { font-size: 1.5rem; }
}