:root {
    --dark: #020713;
    --dark-blue: #071a52;
    --blue: #087cff;
    --blue-dark: #0058d8;
    --cyan: #00d9ff;
    --white: #ffffff;
    --text-dark: #101828;
    --text-muted: #667085;
    --border: #dde5ef;
    --input-background: #f8fafc;
    --danger: #d92d20;
    --danger-background: #fff2f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--dark);
    color: var(--text-dark);
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(0, 170, 255, 0.18),
            transparent 31%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(0, 83, 255, 0.2),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #01040b 0%,
            #06122a 52%,
            #020713 100%
        );
}

.background-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(5px);
    animation: floating 9s ease-in-out infinite;
}

.glow-one {
    width: 430px;
    height: 430px;
    top: -220px;
    right: -130px;
    background: rgba(0, 145, 255, 0.15);
}

.glow-two {
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -100px;
    background: rgba(0, 217, 255, 0.11);
    animation-delay: -4s;
}

@keyframes floating {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(16px, -20px) scale(1.08);
    }
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: 80px;
    animation: pageEntrance 0.7s ease-out;
}

@keyframes pageEntrance {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-section {
    color: white;
}

.streamcloud-logo {
    display: block;
    width: 390px;
    max-width: 85%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    filter:
        drop-shadow(0 15px 30px rgba(0, 126, 255, 0.2))
        drop-shadow(0 0 28px rgba(0, 218, 255, 0.08));
}

.brand-section h1 {
    max-width: 600px;
    margin-bottom: 15px;
    font-size: 34px;
    line-height: 1.25;
}

.brand-section > p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.8;
}

.brand-features {
    display: grid;
    gap: 15px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 530px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(10px);
}

.feature-item > i {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(0, 141, 255, 0.14);
    font-size: 17px;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.55;
}

.feature-item strong {
    display: block;
    margin-bottom: 2px;
    color: white;
    font-size: 13px;
}

.login-card {
    position: relative;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 34px 85px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 70%;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 10px 10px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--cyan),
        var(--blue),
        transparent
    );
}

.card-header {
    margin-bottom: 26px;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #eaf4ff;
    font-size: 11px;
    font-weight: 600;
}

.card-header h2 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 30px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    margin-bottom: 20px;
    border: 1px solid #ffd2cc;
    border-radius: 12px;
    color: var(--danger);
    background: var(--danger-background);
    font-size: 12px;
    line-height: 1.5;
}

.alert-error i {
    margin-top: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 55px;
    padding: 0 50px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    color: var(--text-dark);
    background: var(--input-background);
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #98a2b3;
}

.input-wrapper input:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(8, 124, 255, 0.11);
}

.input-icon {
    position: absolute;
    left: 17px;
    z-index: 2;
    color: #667085;
    font-size: 15px;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 8px;
    z-index: 3;
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 9px;
    color: #667085;
    background: transparent;
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--blue);
    background: #eaf4ff;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 24px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;
    opacity: 0;
}

.checkbox-design {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: transparent;
    background: white;
    font-size: 10px;
    transition: all 0.2s ease;
}

.remember-option input:checked + .checkbox-design {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
}

.forgot-password {
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 55px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(
        135deg,
        var(--blue),
        var(--blue-dark)
    );
    box-shadow: 0 13px 28px rgba(0, 94, 224, 0.27);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 33px rgba(0, 94, 224, 0.34);
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.82;
}

.button-normal,
.button-loading {
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-normal {
    display: flex;
}

.button-loading {
    display: none;
}

.login-button.is-loading .button-normal {
    display: none;
}

.login-button.is-loading .button-loading {
    display: flex;
}

.security-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 14px;
    border: 1px solid #e6edf5;
    border-radius: 13px;
    background: #f8fafc;
}

.security-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--blue);
    background: #eaf4ff;
}

.security-box strong {
    display: block;
    margin-bottom: 3px;
    color: #344054;
    font-size: 11px;
}

.security-box p {
    color: #7a8495;
    font-size: 9px;
    line-height: 1.5;
}

.login-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 19px;
    color: #98a2b3;
    font-size: 9px;
}

.login-footer span + span::before {
    content: "•";
    margin-right: 10px;
}

@media (max-width: 950px) {

    .login-container {
        max-width: 500px;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .brand-section {
        text-align: center;
    }

    .streamcloud-logo {
        width: 285px;
        margin-right: auto;
        margin-left: auto;
    }

    .brand-section h1 {
        display: none;
    }

    .brand-section > p {
        margin: 0 auto;
        font-size: 12px;
    }

    .brand-features {
        display: none;
    }
}

@media (max-width: 540px) {

    .login-page {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .login-container {
        gap: 15px;
    }

    .streamcloud-logo {
        width: 235px;
    }

    .brand-section > p {
        font-size: 10px;
    }

    .login-card {
        padding: 27px 20px;
        border-radius: 20px;
    }

    .card-header h2 {
        font-size: 25px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .forgot-password {
        margin-left: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}