@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand: #2bc5b4;
    --brand-dark: #1fa89a;
    --brand-light: #e8faf8;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --surface: #ffffff;
    --bg: #f0faf9;
    --error: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(43,197,180,0.10), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 24px 60px rgba(43,197,180,0.13), 0 6px 20px rgba(0,0,0,0.07);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------- animated background blobs ---------- */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: drift 8s ease-in-out infinite alternate;
}
body::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #2bc5b4 0%, #a7f3ee 100%);
    top: -120px; right: -120px;
}
body::after {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #0ea5e9 0%, #7dd3fc 100%);
    bottom: -100px; left: -80px;
    animation-delay: 3s;
}
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.06); }
}

/* ---------- wrapper ---------- */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---------- card ---------- */
.login-card {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 44px 44px 40px;
    border: 1px solid rgba(43,197,180,0.12);
    animation: slideUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- header ---------- */
.lc-header {
    text-align: center;
    margin-bottom: 36px;
}
.lc-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    border-radius: 20px;
    background: var(--brand-light);
    margin-bottom: 20px;
    box-shadow: 0 0 0 6px rgba(43,197,180,0.08);
}
.lc-logo-wrap img { height: 50px; }
.lc-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.lc-header p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- alert ---------- */
.lc-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: var(--error);
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- form fields ---------- */
.field-group { margin-bottom: 18px; }
.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}
.field-wrap { position: relative; }
.field-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}
.form-control {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    background: #fafafa;
    padding: 0 44px 0 42px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}
.form-control::placeholder { color: #b0bec5; }
.form-control:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43,197,180,0.12);
}
.form-control:focus ~ .field-icon { color: var(--brand); }
.form-control.is-invalid { border-color: var(--error); }

/* eye toggle */
.eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 4px;
    line-height: 1;
}
.eye-toggle:hover { color: var(--brand); }

.field-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- options row ---------- */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.custom-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}
.custom-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--brand);
    border-radius: 4px;
    cursor: pointer;
}
.forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--brand) 0%, #1db8a8 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    box-shadow: 0 4px 18px rgba(43,197,180,0.38);
    letter-spacing: 0.2px;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(43,197,180,0.45);
}
.btn-login:active { transform: translateY(0); }

/* spinner */
.btn-login .spinner {
    width: 16px; height: 16px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
.btn-login.loading .spinner { display: block; }
.btn-login.loading .btn-text { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- trust badges ---------- */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}
.trust-item i { color: var(--brand); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 480px) {
    .login-card { padding: 32px 24px 28px; }
    .lc-header h2 { font-size: 20px; }
}
