
/* ========================
   CLOUD ZERO - LOGIN
======================== */

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

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    min-height: 100dvh;

    padding: 48px 20px;
}

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

.login-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

/* ========================
   BRAND
======================== */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-bottom: 26px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    overflow: hidden;
    border-radius: 14px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.login-brand h1 {
    margin: 0;

    color: var(--text-primary);

    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.9px;
    line-height: 1.1;
}

.brand-line {
    display: block;

    width: 36px;
    height: 3px;

    background: var(--accent);
    border-radius: 10px;
}

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

.login-card {
    padding: 34px;

    background: linear-gradient(
        155deg,
        rgba(40, 27, 34, 0.90),
        rgba(23, 17, 22, 0.94)
    );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(115, 83, 96, 0.28);
    border-radius: 18px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.32),
        0 0 45px rgba(241, 53, 75, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* ========================
   CARD HEADER
======================== */

.login-card-header {
    margin-bottom: 29px;
}

.login-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.login-card-header h2 {
    margin: 0 0 8px;

    color: var(--text-primary);

    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.login-card-header p {
    max-width: 300px;
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

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

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-bottom: 20px;
}

.form-group label {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;
}

/* ========================
   INPUT WRAPPER
======================== */

.input-wrapper {
    display: flex;
    align-items: center;

    width: 100%;
    height: 48px;

    background: rgba(10, 8, 12, 0.68);

    border: 1px solid rgba(115, 83, 96, 0.30);
    border-radius: 10px;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.input-wrapper:hover {
    border-color: var(--border-hover);
}

.input-wrapper:focus-within {
    background: var(--bg-deep);
    border-color: var(--accent);

    box-shadow: 0 0 0 3px var(--accent-focus);
}

.input-wrapper > svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;

    margin-left: 15px;

    color: var(--text-muted);

    transition: color var(--transition);
}

.input-wrapper:focus-within > svg {
    color: var(--accent);
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    min-width: 0;

    padding: 0 14px;

    background: transparent;
    border: none;
    outline: none;

    color: var(--text-primary);
    font-size: 13px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.input-wrapper input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary);
    transition: background-color 9999s ease-in-out 0s;
}

/* ========================
   LOGIN BUTTON
======================== */

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    width: 100%;
    height: 48px;

    margin-top: 7px;

    background: linear-gradient(
        135deg,
        #ed4357,
        #db3048
    );

    border: 1px solid transparent;
    border-radius: 10px;

    color: var(--text-white);

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 4px 18px rgba(241, 53, 75, 0.10);

    transition:
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.login-button svg {
    width: 17px;
    height: 17px;

    transition: transform var(--transition);
}

.login-button:hover {
    background: linear-gradient(
        135deg,
        #ff5669,
        #ed3d54
    );

    box-shadow: 0 7px 25px rgba(241, 53, 75, 0.20);
}

.login-button:hover svg {
    transform: translateX(3px);
}

.login-button:active {
    transform: scale(0.99);
}

/* ========================
   ERROR FALLBACK
======================== */

.login-error {
    margin-bottom: 24px;
    padding: 13px 15px;

    background: rgba(255, 89, 110, 0.07);

    border: 1px solid rgba(255, 89, 110, 0.22);
    border-radius: 9px;

    color: var(--danger);

    font-size: 12px;
    line-height: 1.6;
}

/* ========================
   CARD FOOTER
======================== */

.login-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 27px;
    padding-top: 23px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);
    font-size: 11px;
}

.login-card-footer svg {
    width: 14px;
    height: 14px;
}

/* ========================
   PAGE FOOTER
======================== */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 30px;

    color: var(--text-muted);

    font-size: 11px;
    letter-spacing: 0.2px;
    opacity: 0.75;
}

.footer-separator {
    width: 3px;
    height: 3px;

    background: var(--text-muted);
    border-radius: 50%;
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 480px) {
    .login-page {
        padding: 28px 16px;
    }

    .login-brand {
        gap: 12px;
        margin-bottom: 24px;
    }

    .login-logo {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .login-brand h1 {
        font-size: 23px;
    }

    .brand-line {
        width: 30px;
        height: 2px;
    }

    .login-card {
        padding: 27px 23px;
        border-radius: 15px;
    }

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

    .login-footer {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .input-wrapper,
    .input-wrapper > svg,
    .login-button,
    .login-button svg {
        transition: none;
    }
}


/* ========================
   DOUBLE AUTHENTIFICATION
======================== */

.login-code-input {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.login-code-input::placeholder {
    letter-spacing: 0.3em;
}

.login-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.login-cancel {
    margin-top: 18px;
    text-align: center;
}

.login-link-button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.login-link-button:hover {
    color: var(--accent-light);
}