
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

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

:root {
    --tie-blue: #2563eb;
    --tie-cyan: #45f3ff;
    --tie-dark: #0b1120;
    --tie-panel: #151f30;
    --tie-text: #f8fafc;
    --tie-muted: #a8b3c7;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, #172b4d 0%, transparent 55%),
        var(--tie-dark);
    color: var(--tie-text);
}

.page-container {
    min-height: 100vh;
    width: 100%;
    padding: 35px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.box {
    position: relative;
    width: min(100%, 440px);
    padding: 3px;
    border-radius: 22px;
    isolation: isolate;
    filter: drop-shadow(0 15px 45px rgba(0, 0, 0, 0.4));
}

.box::before,
.box .border-line {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: 24px;
    background: conic-gradient(
        from var(--a, 0deg),
        transparent 0deg,
        var(--tie-blue) 70deg,
        var(--tie-cyan) 130deg,
        transparent 190deg,
        var(--tie-blue) 270deg,
        transparent 360deg
    );
    animation: tieGlow 5s linear infinite;
}

.box .border-line {
    filter: blur(13px);
    opacity: 0.55;
    z-index: -3;
}

@property --a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes tieGlow {
    to {
        --a: 360deg;
    }
}

.box form {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 34px 32px;
    border-radius: 19px;
    border: 1px solid rgba(69, 243, 255, 0.12);
    background: linear-gradient(145deg, #182438, #0e1727);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--tie-text);
    text-decoration: none;
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 27px;
}

.brand strong {
    color: var(--tie-cyan);
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #07111e;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tie-cyan), var(--tie-blue));
    box-shadow: 0 0 20px rgba(69, 243, 255, 0.22);
}

.box h1 {
    text-align: center;
    font-size: clamp(25px, 5vw, 30px);
    font-weight: 700;
    margin-bottom: 7px;
}

.subtitle {
    text-align: center;
    color: var(--tie-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.input-box {
    position: relative;
    width: 100%;
    margin-bottom: 21px;
}

.input-box input {
    width: 100%;
    height: 54px;
    padding: 17px 15px 8px;
    border: 1px solid #42516a;
    border-radius: 9px;
    outline: none;
    background: rgba(3, 9, 20, 0.5);
    color: var(--tie-text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box label {
    position: absolute;
    left: 15px;
    top: 16px;
    color: #9caac0;
    font-size: 13px;
    pointer-events: none;
    transition: 0.2s ease;
}

.input-box input:focus,
.input-box input:not(:placeholder-shown) {
    border-color: var(--tie-cyan);
}

.input-box input:focus {
    box-shadow: 0 0 0 3px rgba(69, 243, 255, 0.1);
}

.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    top: 4px;
    font-size: 10px;
    color: var(--tie-cyan);
}

.password-box input {
    padding-right: 68px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 16px;
    border: 0;
    background: transparent;
    color: var(--tie-cyan);
    cursor: pointer;
    font-size: 12px;
}

.imp-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 23px;
}

.imp-links a,
.back-home a {
    color: var(--tie-cyan);
    text-decoration: none;
    font-size: 12px;
}

.imp-links a:hover,
.back-home a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(100deg, var(--tie-blue), var(--tie-cyan));
    color: #07111e;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(69, 243, 255, 0.22);
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.status-message {
    min-height: 18px;
    margin-top: 13px;
    text-align: center;
    color: var(--tie-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.back-home {
    text-align: center;
    margin-top: 13px;
}

.page-footer {
    color: #8c9bb3;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--tie-cyan);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .page-container {
        padding: 22px 14px;
        gap: 20px;
    }

    .box form {
        padding: 28px 21px;
    }

    .brand {
        margin-bottom: 22px;
    }

    .imp-links a {
        font-size: 11px;
    }

    .page-footer {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}