/* ==========================================================
   TOTAL CONTROL MAIL — Login
========================================================== */

:root {
    --tc-primary: #0F2A6B;
    --tc-primary-light: #2F61B6;
    --tc-accent: #38BDF8;
    --tc-glass: rgba(255, 255, 255, .10);
    --tc-glass-border: rgba(255, 255, 255, .14);
    --tc-text: #FFFFFF;
    --tc-text-light: rgba(255, 255, 255, .72);
}

body.task-login {
    overflow: hidden;
    font-family: Inter, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, .25), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(47, 97, 182, .28), transparent 26%),
        linear-gradient(
            135deg,
            #061536 0%,
            #0A1F54 30%,
            #123980 70%,
            #2F61B6 100%
        );
    position: relative;
}

body.task-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(
            rgba(8, 25, 63, .35),
            rgba(8, 25, 63, .55)
        );
    pointer-events: none;
    z-index: 0;
}

body.task-login #layout {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

body.task-login #tc-login {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

body.task-login .tc-overlay {
    display: none;
}

body.task-login .tc-login-panel {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.task-login .tc-card {
    width: 100%;
    max-width: 470px;
    padding: 55px;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .14),
        rgba(255, 255, 255, .08)
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
    position: relative;
    overflow: hidden;
    animation: tc-fade-up .55s ease;
}

body.task-login .tc-card::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -160px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, .30),
        transparent 70%
    );
}

body.task-login .tc-card > * {
    position: relative;
    z-index: 2;
}

body.task-login .tc-logo {
    display: block;
    width: 140px;
    margin: 0 auto 14px;
    user-select: none;
}

body.task-login .tc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .16);
    border: 1px solid rgba(56, 189, 248, .25);
    color: #8BD8FF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.task-login .tc-card h2 {
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}

body.task-login .tc-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 38px;
}

body.task-login #login-form {
    width: 100%;
}

body.task-login .tc-field {
    margin-bottom: 22px;
}

body.task-login .tc-field label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

body.task-login .tc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.task-login .tc-input {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    transition: .30s;
}

body.task-login .tc-input:hover {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(56, 189, 248, .20);
}

body.task-login .tc-input:focus-within {
    background: rgba(255, 255, 255, .14);
    border-color: #38BDF8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}

body.task-login .tc-input svg {
    width: 18px;
    height: 18px;
    fill: #8CCEFF;
    flex: none;
}

body.task-login .tc-input input {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

body.task-login .tc-input input::placeholder {
    color: rgba(255, 255, 255, .45);
}

body.task-login .tc-show-password {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: #9BDFFF;
    font-size: 17px;
    transition: .25s;
}

body.task-login .tc-show-password:hover {
    transform: scale(1.15);
    color: #fff;
}

body.task-login .tc-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 60px;
    margin-top: 12px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #2F61B6 0%, #0F2A6B 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
    box-shadow: 0 12px 28px rgba(15, 42, 107, .30);
}

body.task-login .tc-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent,
        rgba(255, 255, 255, .28),
        transparent
    );
    transition: left .7s ease;
}

body.task-login .tc-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    background: linear-gradient(135deg, #4CC9FF 0%, #1E4ED8 100%);
    box-shadow: 0 18px 40px rgba(15, 42, 107, .45);
}

body.task-login .tc-submit:hover::before {
    left: 160%;
}

body.task-login .tc-submit:active {
    transform: translateY(1px);
}

body.task-login .tc-footer {
    margin-top: 28px;
    text-align: center;
    color: rgba(255, 255, 255, .50);
    font-size: 13px;
}

body.task-login a {
    color: #8BD8FF;
    text-decoration: none;
    transition: .25s;
}

body.task-login a:hover {
    color: white;
}

@keyframes tc-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body.task-login {
        overflow: auto;
    }

    body.task-login #tc-login {
        min-height: 100vh;
        padding: 20px;
    }

    body.task-login .tc-card {
        max-width: 430px;
        padding: 36px 28px;
        border-radius: 24px;
    }

    body.task-login .tc-logo {
        width: 125px;
    }

    body.task-login .tc-card h2 {
        font-size: 30px;
    }

    body.task-login .tc-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    body.task-login .tc-input,
    body.task-login .tc-submit {
        height: 56px;
    }

    body.task-login .tc-input input,
    body.task-login .tc-submit {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body.task-login #tc-login {
        padding: 16px;
    }

    body.task-login .tc-card {
        max-width: 100%;
        padding: 28px 22px;
        border-radius: 22px;
    }

    body.task-login .tc-logo {
        width: 110px;
    }

    body.task-login .tc-card h2 {
        font-size: 26px;
    }

    body.task-login .tc-subtitle {
        font-size: 14px;
    }

    body.task-login .tc-input {
        height: 54px;
    }
}
