/* =========================================================
   PHILIA LOGIN
   ========================================================= */

:root {
    --primary: #ffffff;
    --purple: #6b00e9;
    --pink: #f3069f;
    --orange: #f99a11;
    --text-dark: #241638;
    --text-muted: #756b82;
    --border: #e8e1ef;
    --shadow: 0 24px 70px rgba(107, 0, 233, 0.12);
    --radius-large: 28px;
    --radius-medium: 14px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(243, 6, 159, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(249, 154, 17, 0.10),
            transparent 30%
        ),
        #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
}

/* =========================================================
   BACKGROUND ORNAMENTS
   ========================================================= */

.login-page::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    left: -150px;

    background: var(--purple);

    border-radius: 50%;

    opacity: 0.08;

    filter: blur(4px);

    pointer-events: none;
}

.login-page::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -140px;
    background: var(--pink);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(4px);
    pointer-events: none;
}

/* =========================================================
   LOGO DECORATION
   ========================================================= */

.logo-decoration {
    position: absolute;
    top: 8%;
    left: 7%;
    width: 230px;
    opacity: 0.95;
    z-index: 1;
    pointer-events: none;
}

.logo-decoration img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(
            0 14px 30px
            rgba(107, 0, 233, 0.12)
        );
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 460px;
    padding: 48px 44px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(107, 0, 233, 0.08);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {
    text-align: center;
    margin-bottom: 34px;
}

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.login-brand img {
    display: block;
    width: 125px;
    height: auto;
    object-fit: contain;
}


.login-header h1 {
    margin-bottom: 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}


.login-header p {
    font-size: 14px;

    line-height: 1.6;

    color: var(--text-muted);
}


/* =========================================================
   FORM
   ========================================================= */

.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 14px;

    font-weight: 600;

    color: var(--text-dark);
}


/* =========================================================
   INPUT
   ========================================================= */

.form-group input {
    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    outline: none;

    background: #ffffff;

    color: var(--text-dark);

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.form-group input::placeholder {
    color: #aaa2b1;
}


.form-group input:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 4px
        rgba(107, 0, 233, 0.08);
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-wrapper {
    position: relative;
}


.password-wrapper input {
    padding-right: 75px;
}


.toggle-password {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: var(--purple);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    padding: 5px;
}


.toggle-password:hover {
    color: var(--pink);
}


/* =========================================================
   LOGIN MESSAGE
   ========================================================= */

.login-message {
    min-height: 20px;

    margin-bottom: 8px;

    font-size: 13px;

    text-align: center;

    color: #d6005c;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
    position: relative;

    width: 100%;

    height: 54px;

    border: none;

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--pink)
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 12px 26px
        rgba(107, 0, 233, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.login-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );
    transition: left 0.5s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 32px
        rgba(107, 0, 233, 0.26);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer {
    margin-top: 26px;
    text-align: center;
}

.login-footer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.login-loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #6d00ff,
        #9b4dff,
        #ff4b8b,
        #ff5b5b,
        #6d00ff
    );

    position: relative;
    display: inline-block;
    animation: loginSpinner 0.9s linear infinite;
}

.login-loading-spinner::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #ffffff;
    border-radius: 50%;
}

.login-button:disabled {
    background: #ffffff;
    color: transparent;
    cursor: not-allowed;
}

@keyframes loginSpinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   1600px+
   ========================================================= */

@media (min-width: 1600px) {

    .login-page {
        padding: 80px 40px;
    }


    .logo-decoration {
        top: 10%;
        left: 9%;

        width: 280px;
    }


    .login-card {
        max-width: 500px;

        padding: 56px 52px;
    }


    .login-header h1 {
        font-size: 36px;
    }
}


/* =========================================================
   1200px - 1599px
   ========================================================= */

@media (min-width: 1200px) {

    .logo-decoration {
        top: 9%;
        left: 7%;

        width: 250px;
    }
}


/* =========================================================
   1025px - 1199px
   ========================================================= */

@media (min-width: 1025px) {

    .logo-decoration {
        top: 8%;
        left: 5%;

        width: 220px;
    }
}


/* =========================================================
   MAX 1199px
   ========================================================= */

@media (max-width: 1199px) {

    .login-page {
        padding: 50px 24px;
    }


    .logo-decoration {
        opacity: 0.8;
    }
}


/* =========================================================
   MAX 1024px
   ========================================================= */

@media (max-width: 1024px) {

    .login-page {
        padding: 50px 24px;
    }


    .logo-decoration {
        top: 5%;
        left: 4%;

        width: 180px;

        opacity: 0.65;
    }


    .login-card {
        max-width: 440px;
    }
}


/* =========================================================
   MAX 992px
   ========================================================= */

@media (max-width: 992px) {

    .logo-decoration {
        top: 4%;
        left: 50%;

        width: 150px;

        transform: translateX(-50%);

        opacity: 0.55;
    }


    .login-card {
        margin-top: 40px;
    }
}


/* =========================================================
   MAX 768px
   ========================================================= */

@media (max-width: 768px) {

    .login-page {
        padding: 40px 20px;
    }


    .logo-decoration {
        top: 3%;

        width: 130px;

        opacity: 0.45;
    }


    .login-card {
        max-width: 430px;

        padding: 40px 34px;
    }


    .login-header {
        margin-bottom: 30px;
    }


    .login-header h1 {
        font-size: 29px;
    }
}


/* =========================================================
   MAX 480px
   ========================================================= */

@media (max-width: 480px) {

    .login-page {
        padding: 30px 16px;
    }


    .logo-decoration {
        top: 2.5%;

        width: 110px;

        opacity: 0.38;
    }


    .login-card {
        margin-top: 35px;

        padding: 34px 24px;

        border-radius: 22px;
    }


    .login-header h1 {
        font-size: 27px;
    }


    .login-header p {
        font-size: 13px;
    }


    .form-group {
        margin-bottom: 19px;
    }


    .form-group input {
        height: 50px;
    }


    .login-button {
        height: 52px;
    }
}


/* =========================================================
   MAX 420px
   ========================================================= */

@media (max-width: 420px) {

    .login-brand img {
        width: 105px;
    }


    .logo-decoration {
        width: 95px;
    }


    .login-card {
        margin-top: 30px;

        padding: 30px 20px;
    }


    .login-header h1 {
        font-size: 25px;
    }


    .login-badge {
        margin-bottom: 15px;

        padding: 6px 14px;

        font-size: 10px;
    }
}


/* =========================================================
   MAX 360px
   ========================================================= */

@media (max-width: 360px) {

    .login-brand img {
        width: 90px;
    }


    .logo-decoration {
        width: 80px;
    }


    .login-card {
        margin-top: 25px;

        padding: 27px 17px;

        border-radius: 19px;
    }


    .login-header {
        margin-bottom: 25px;
    }


    .login-header h1 {
        font-size: 23px;
    }


    .login-header p {
        font-size: 12px;
    }


    .form-group label {
        font-size: 13px;
    }


    .form-group input {
        height: 48px;

        font-size: 13px;
    }


    .login-button {
        height: 50px;

        font-size: 14px;
    }


    .login-footer p {
        font-size: 11px;
    }
}