/* =====================================================
   LOGIN PAGE — AI Vault Dashboard theme
   Modern Blue / Purple Design (matches profile.css)
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f5f6ff;
    color: #202044;
    min-height: 100vh;
}

/* =====================================================
   PAGE CONTAINER
===================================================== */

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background:
        radial-gradient(
            circle at top right,
            rgba(92, 75, 230, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(45, 142, 219, 0.10),
            transparent 40%
        ),
        #f6f7ff;
}

/* =====================================================
   LOGIN CARD
===================================================== */

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(81, 70, 223, 0.10);
    border-radius: 25px;
    padding: 40px 34px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(46, 42, 120, 0.08);
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5146df, #2d8edb);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(81, 70, 223, 0.30);
}

.login-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #161650;
}

.login-card h2::first-letter {
    color: #5146df;
}

.subtitle {
    color: #77778d;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    margin-bottom: 26px;
}

/* =====================================================
   ALERTS
===================================================== */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.alert.error {
    background: #fdeceea;
    color: #b3261e;
    border: 1px solid rgba(179, 38, 30, 0.18);
}

.alert.success {
    background: #e9f9ef;
    color: #1c7a3f;
    border: 1px solid rgba(28, 122, 63, 0.2);
}

/* =====================================================
   FORM / INPUTS
===================================================== */

form {
    text-align: left;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f6fd;
    border: 1px solid rgba(81, 70, 223, 0.14);
    border-radius: 50px;
    padding: 0 18px;
    margin-bottom: 18px;
    transition: 0.25s ease;
}

.input-box:focus-within {
    border-color: #5146df;
    background: #fff;
    box-shadow: 0 8px 20px rgba(81, 70, 223, 0.12);
}

.input-box i {
    color: #5146df;
    font-size: 15px;
    margin-right: 12px;
    flex-shrink: 0;
}

.input-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: 14px;
    font-family: inherit;
    color: #20204c;
}

.input-box input::placeholder {
    color: #9999aa;
}

.toggle-password {
    cursor: pointer;
    color: #9999aa;
    margin-left: 8px;
    flex-shrink: 0;
}

.toggle-password:hover {
    color: #5146df;
}

/* =====================================================
   OPTIONS ROW
===================================================== */

.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.options .remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #77778d;
    font-weight: 500;
    cursor: pointer;
}

.options .remember input {
    accent-color: #5146df;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.options a {
    color: #5146df;
    text-decoration: none;
    font-weight: 600;
}

.options a:hover {
    text-decoration: underline;
}

/* =====================================================
   BUTTONS
===================================================== */

.login-btn,
.passkey-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.25s ease;
}

.login-btn {
    background: linear-gradient(135deg, #5146df, #2d8edb);
    color: #fff;
    box-shadow: 0 10px 25px rgba(81, 70, 223, 0.28);
}

.login-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.passkey-btn {
    background: #fff;
    color: #20204c;
    border: 1.5px solid rgba(81, 70, 223, 0.20);
    margin-top: 14px;
}

.passkey-btn i {
    color: #5146df;
}

.passkey-btn:hover {
    transform: translateY(-3px);
    border-color: #5146df;
    box-shadow: 0 10px 25px rgba(81, 70, 223, 0.15);
}

/* =====================================================
   DIVIDER
===================================================== */

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 6px;
    color: #9999aa;
    font-size: 12px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ecebfa;
}

.divider span {
    padding: 0 14px;
}

/* =====================================================
   REGISTER LINK
===================================================== */

.register {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: #77778d;
    font-weight: 500;
}

.register a {
    color: #5146df;
    font-weight: 700;
    text-decoration: none;
}

.register a:hover {
    text-decoration: underline;
}

/* =====================================================
   TABLET (≤600px)
===================================================== */

@media (max-width: 600px) {
    .container {
        padding: 20px 14px;
    }

    .login-card {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .login-card h2 {
        font-size: 21px;
    }

    .logo {
        width: 56px;
        height: 56px;
        font-size: 22px;
        border-radius: 15px;
    }

    .input-box input {
        padding: 12px 0;
        font-size: 13px;
    }

    .login-btn,
    .passkey-btn {
        padding: 13px 18px;
        font-size: 13px;
    }
}

/* =====================================================
   VERY SMALL PHONES (≤380px)
===================================================== */

@media (max-width: 380px) {
    .login-card {
        padding: 26px 18px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
