*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b8d0eb 0%, #a8c4e0 30%, #8baed4 60%, #6f97c8 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 8s ease-in-out infinite;
}
body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,128,185,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -40px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.bg-dots {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.brand-header {
    text-align: center;
    margin-bottom: 16px;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4f46e5, #1e80b9);
    border-radius: 13px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(79,70,229,0.35);
}
.brand-logo i {
    font-size: 22px;
    color: #ffffff;
}
.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 3px;
}
.brand-tagline {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
    text-align: center
}
.card-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
    font-weight: 400;
    text-align: center;
}

.field-group {
    margin-bottom: 12px;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 25px 50px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    padding: 28px 30px 24px;
}

.card-subtitle span {
    color: #4f46e5;
    font-weight: 600;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}
.alert-error i { font-size: 14px; }

.field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.field-wrap {
    position: relative;
}
.field-wrap .field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
}
.field-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.field-input::placeholder { color: #94a3b8; }
.field-input:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.field-input:focus ~ .field-icon,
.field-wrap:focus-within .field-icon { color: #4f46e5; }

.btn-signin {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #1e80b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}
.btn-signin:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: rgba(15, 23, 42, 0.5);
    font-weight: 500;
}
.login-footer strong { color: rgba(15, 23, 42, 0.7); }

.session-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 20px;
    align-self: flex-start;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 4px 12px 4px 6px;
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    backdrop-filter: blur(10px);
}
.user-chip-avatar {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #4f46e5, #1e80b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-chip-avatar i { color: #fff; font-size: 10px; }

.session-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 25px 50px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    padding: 24px 28px 22px;
}

.step-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.step-pill {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    transition: background 0.4s ease;
}
.step-pill.active { background: linear-gradient(90deg, #4f46e5, #1e80b9); }

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}
.session-wrapper .field-label i {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #4f46e5, #1e80b9);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #fff;
    flex-shrink: 0;
}

.field-select {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.field-select:focus {
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.field-select.loading {
    opacity: 0.6;
    pointer-events: none;
}

.field-loading {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4f46e5;
    font-weight: 500;
    margin-top: 4px;
}
.field-loading.show { display: flex; }
.spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(79,70,229,0.2);
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 14px 0;
}

.btn-submit {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, #4f46e5 0%, #1e80b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}
.btn-submit i { font-size: 15px; }

.session-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: rgba(15, 23, 42, 0.5);
    font-weight: 500;
}
.session-footer strong { color: rgba(15, 23, 42, 0.7); }
