* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    background: #121212;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-left-background {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-height: 100vh;
    overflow: hidden;
}

.auth-left-background::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    content: "";
    background: #121212;
    background: linear-gradient(135deg, #121212 25%, #1a1a1a 0, #1a1a1a 50%, #121212 0, #121212 75%, #1a1a1a 0, #1a1a1a);
    background-size: 40px 40px;
    animation: move 4s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

.login-wrap {
    width: min(420px, calc(100vw - 32px));
    animation: fadeInUp .55s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    margin-bottom: 20px;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1.2;
    text-align: center;
}

.login-logo a {
    text-shadow: 0 12px 32px rgba(0, 183, 255, .22);
}

.alert {
    width: min(400px, 100%);
    margin: 0 auto 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.alert-success {
    background: rgba(35, 196, 131, .2);
    border-color: rgba(35, 196, 131, .45);
}

.alert-error {
    background: rgba(240, 109, 109, .2);
    border-color: rgba(240, 109, 109, .5);
}

.custom-card-login {
    position: relative;
    z-index: 10;
    display: flex;
    place-content: center;
    place-items: center;
    width: 400px;
    max-width: 100%;
    height: 400px;
    padding: 20px;
    overflow: hidden;
    background: #07182e;
    border-radius: 20px;
}

.custom-card-login::before {
    position: absolute;
    z-index: 1;
    width: 100px;
    height: 130%;
    content: "";
    background-image: linear-gradient(180deg, #00b7ff, #ff30ff);
    animation: rotBGimg 3s linear infinite;
}

.custom-card-login::after {
    position: absolute;
    z-index: 1;
    content: "";
    background: #07182e;
    border-radius: 15px;
    inset: 5px;
}

@keyframes rotBGimg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-card-login .login-form,
.dashboard-panel {
    position: relative;
    z-index: 20;
    width: 300px;
    min-height: 250px;
    padding: 10px;
    color: #fff;
    background: #07182e;
    border-radius: 5px;
}

.field {
    margin-bottom: 18px;
}

.form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 13px;
    color: #111827;
    font-size: 15px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
}

.form-control:focus {
    border-color: #00b7ff;
    box-shadow: 0 0 0 3px rgba(0, 183, 255, .2);
}

.password-field {
    position: relative;
    margin-bottom: 26px;
}

.password-field .form-control {
    padding-right: 64px;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 6px 7px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    background: #eef2f7;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.icheck-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.icheck-primary input {
    width: 16px;
    height: 16px;
    accent-color: #00b7ff;
}

.icheck-primary label {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.login-button {
    padding: 1.3em 3em;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    background-color: #f06d6d;
    border: none;
    border-radius: 45px;
    outline: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
    transition: all .3s ease 0s;
}

.login-button:hover {
    color: #fff;
    background-color: #23c483;
    box-shadow: 0 15px 20px rgba(46, 229, 157, .4);
    transform: translateY(-7px);
}

.login-button:active {
    transform: translateY(-1px);
}

.dashboard-card {
    text-align: center;
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dashboard-panel h2 {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: 24px;
    overflow-wrap: anywhere;
}

.dashboard-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: #b6f7da;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(35, 196, 131, .14);
    border: 1px solid rgba(35, 196, 131, .36);
    border-radius: 999px;
}

.dashboard-actions {
    margin-top: 8px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sweet-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .72);
}

.sweet-overlay.is-visible {
    display: flex;
}

.sweet-alert {
    width: min(420px, 100%);
    padding: 30px 28px;
    color: #1f2937;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    animation: sweetPop .22s ease both;
}

.sweet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin-bottom: 16px;
    color: #f8bb86;
    font-size: 48px;
    font-weight: 700;
    border: 4px solid #facea8;
    border-radius: 50%;
}

.sweet-icon-warning {
    color: #f8bb86;
    border-color: #facea8;
}

.sweet-icon-error {
    color: #f27474;
    border-color: #f27474;
}

.sweet-icon-success {
    color: #23c483;
    font-size: 28px;
    border-color: #23c483;
}

.sweet-alert h2 {
    margin: 0 0 10px;
    color: #303441;
    font-size: 26px;
    line-height: 1.25;
}

.sweet-alert p {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

.sweet-button {
    min-width: 92px;
    padding: 10px 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #3085d6;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(48, 133, 214, .32);
}

.sweet-button:focus {
    outline: 3px solid rgba(48, 133, 214, .28);
    outline-offset: 2px;
}

@keyframes sweetPop {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-hero {
    width: 50%;
    min-height: 100vh;
    background-image: url("bgtech1.webp");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    background: rgba(17, 24, 39, .62);
}

.hero-copy {
    max-width: 520px;
    text-align: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 42px;
    line-height: 1.1;
}

.hero-copy p {
    margin: 0;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .auth-shell {
        display: block;
    }

    .auth-left-background {
        width: 100%;
        min-height: 100vh;
        padding: 28px 16px;
    }

    .auth-hero {
        display: none;
    }

    .login-logo {
        font-size: 30px;
    }

    .custom-card-login {
        height: auto;
        min-height: 360px;
    }

    .form-row {
        align-items: stretch;
        flex-direction: column;
    }

    .login-button {
        width: 100%;
    }
}
