/* 
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*/

@import url(./fonts.css);

:root {
    --login-bg: #044E63;
    --login-surface: rgba(4, 78, 99, 0.88);
    --login-surface-strong: rgba(14, 141, 174, 0.95);
    --login-border: rgba(201, 169, 79, 0.2);
    --login-text: #ffffff;
    --login-muted: #9DB5C5;
    --login-accent: #C9A94F;
    --login-accent-2: #59C6CE;
    --login-shadow: 0 30px 80px rgba(4, 78, 99, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--login-text);
    background:
        radial-gradient(circle at top left, rgba(63, 140, 255, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(247, 145, 29, 0.16), transparent 26%),
        linear-gradient(135deg, #050914 0%, #091627 45%, #0d1d33 100%);
}

body.login-page::before,
body.login-page::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
}

body.login-page::before {
    left: -80px;
    top: 40px;
    background: rgba(63, 140, 255, 0.35);
}

body.login-page::after {
    right: -100px;
    bottom: -80px;
    background: rgba(247, 145, 29, 0.30);
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.login-brand-panel,
.login-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--login-border);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(20px);
}

.login-brand-panel {
    min-height: 640px;
    padding: 44px;
    border-radius: 32px;
    background:
        linear-gradient(160deg, rgba(12, 25, 48, 0.96), rgba(8, 14, 28, 0.78)),
        radial-gradient(circle at top right, rgba(63, 140, 255, 0.24), transparent 36%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-badge {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
}

.brand-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.eyebrow {
    margin-top: 28px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    color: var(--login-muted);
}

.login-brand-panel h1 {
    max-width: 12ch;
    margin-top: 14px;
    font-size: clamp(2.35rem, 4vw, 4.3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.brand-copy {
    max-width: 42ch;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--login-muted);
}

.brand-points {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.brand-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--login-text);
}

.brand-point i {
    font-size: 1.25rem;
    color: var(--login-accent);
}

.brand-link {
    align-self: flex-start;
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #07111f;
    background: linear-gradient(135deg, #ffffff, #dbe7ff);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.login-card {
    min-height: 640px;
    padding: 40px;
    border-radius: 32px;
    background: var(--login-surface);
}

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

.card-kicker {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(63, 140, 255, 0.14);
    color: #9cc2ff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.login-card-header h2 {
    margin-top: 14px;
    font-size: 2.1rem;
    line-height: 1.05;
    color: #ffffff;
}

.login-card-header p {
    margin-top: 10px;
    color: var(--login-muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-alert {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.login-alert-error,
.login-alert.error {
    background: rgba(220, 53, 69, 0.14);
    color: #ffd5db;
    border-color: rgba(220, 53, 69, 0.22);
}

.login-alert-success,
.login-alert.success {
    background: rgba(25, 135, 84, 0.14);
    color: #d0f3e2;
    border-color: rgba(25, 135, 84, 0.22);
}

.login-alert-info,
.login-alert.info {
    background: rgba(13, 202, 240, 0.12);
    color: #d8f7ff;
    border-color: rgba(13, 202, 240, 0.20);
}

.input-box {
    position: relative;
    margin-top: 8px;
}

.input-box input {
    width: 100%;
    min-height: 58px;
    padding: 22px 48px 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-box input:focus {
    border-color: rgba(63, 140, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(63, 140, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.input-box label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #a5b5d2;
    font-size: 0.95rem;
    pointer-events: none;
    transition: transform 0.15s ease, color 0.15s ease, font-size 0.15s ease;
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label {
    transform: translateY(-9px);
    font-size: 0.74rem;
    color: #9cc2ff;
}

.input-box i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-accent);
    font-size: 1.15rem;
}

.field-hint,
.caps-tip {
    margin-left: 2px;
    font-size: 0.82rem;
    color: var(--login-muted);
}

.btn.btn-primary {
    min-height: 54px;
    margin-top: 10px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7911d, #f4b24f);
    color: #08111f;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(247, 145, 29, 0.26);
}

.login-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.login-actions a {
    color: #9cc2ff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.login-actions a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel,
    .login-card {
        min-height: auto;
    }

    .login-brand-panel {
        padding: 32px;
    }

    .login-card {
        padding: 32px;
    }
}

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

    .login-brand-panel,
    .login-card {
        border-radius: 24px;
        padding: 24px;
    }

    .login-brand-panel h1 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .login-card-header h2 {
        font-size: 1.8rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto;
        animation: none !important;
        transition: none !important;
    }
}

.info-text h2{
    padding: 1px;
    color: #fff;
    line-height: 0.8;
    text-transform: uppercase;
    font-size: 4rem;
    &.logo {
        color: #f7911d;
        font-size: 3.4rem;
    }
}

.info-text p{
    font-size: 16px;
    color: #fff;
}

.wrapper .bg-animate{
    position: absolute;
    top: 0;
    right: 0;
    width: 850px;
    height: 600px;
    background: linear-gradient(45deg, #1a2908, #14467c);
    /* border-bottom: 3px solid #0ef; */
    transform: rotate(10deg) skewY(40deg);
    /* transform: rotate(0) skewY(0); */
    transform-origin: bottom right;
    transition: 1.5s ease;
    transition-delay: 1.6s;
}

.wrapper.active .bg-animate{
    transform: rotate(0) skewY(0);
    transition-delay: .5s;
}

.wrapper .bg-animate2{
    position: absolute;
    top: 100%;
    left: 250px;
    width: 850px;
    height: 700px;
    background: whitesmoke;
    /* border-top: 3px solid #0ef; */
    /* transform: rotate(-11deg) skewY(-41deg); */
    transform: rotate(0) skewY(0);
    transform-origin: bottom left;
    transition: 1.5s ease;
    transition-delay: .5s;
}

.wrapper.active .bg-animate2{
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}

.login-intro {
    text-align: center;
    color: #4f6385;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.login-alert {
    background: #fff2f2;
    border: 1px solid #f0bdbd;
    color: #9d1f1f;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 8px;
}

.login-messages {
    margin-bottom: 8px;
}

.login-message {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 6px;
    background: #f5f7fb;
    border: 1px solid #dbe2f0;
    color: #334768;
}

.login-helper {
    margin-top: -14px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #60739a;
}

.caps-tip {
    margin-top: -12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9d1f1f;
    font-weight: 600;
}

.input-box input:focus {
    box-shadow: 0 2px 0 rgba(20, 70, 124, 0.15);
}

@media (max-width: 840px) {
    .wrapper {
        width: 94%;
        min-height: 560px;
        height: auto;
    }

    .wrapper .form-box,
    .wrapper .info-text {
        position: relative;
        width: 100%;
        height: auto;
    }

    .wrapper .form-box.login {
        padding: 28px 22px;
    }

    .wrapper .info-text.login {
        text-align: center;
        padding: 12px 22px 30px;
    }

    .wrapper .info-text.login .animation.img-logo {
        width: 28%;
    }

    .wrapper .form-box.register,
    .wrapper .info-text.register {
        display: none;
    }

    .wrapper .bg-animate,
    .wrapper .bg-animate2 {
        display: none;
    }

    .info-text h2 {
        font-size: 2.6rem;
    }
}