:root {
    --white: #ffffff;
    --light-grey: #bdbdbd;

    --pink: #cc3366;

    --purple: #834aa8;
    --dark-purple: #490e70;

    --blue: #324a6d;
    --dark-blue: #1c244b;

    --dark-grey: #333333;
    --near-black: #1e1e1e;
    --black: #000000;

    --card-width: 420px;
    --radius: 18px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    color: var(--dark-grey);

    overflow: hidden;

    background: var(--near-black);
}


/*************************************************/
/* VIDEO                                         */
/*************************************************/

.background-video {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;
}

.video-overlay {
    position: fixed;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(135deg,
            rgba(28, 36, 75, .78),
            rgba(73, 14, 112, .58),
            rgba(0, 0, 0, .75));
}


/*************************************************/
/* PAGE                                          */
/*************************************************/

.login-page {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 30px;
}


/*************************************************/
/* CARD                                          */
/*************************************************/

.login-card {

    width: 100%;
    max-width: var(--card-width);

    padding: 42px;

    border-radius: var(--radius);

    border: 1px solid rgba(131, 74, 168, .45);

    background: rgba(255, 255, 255, .92);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .45),
        0 0 40px rgba(73, 14, 112, .18);

}


/*************************************************/
/* HEADER                                        */
/*************************************************/

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;

}

.login-logo {
    width: 350px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    user-select: none;
}

.login-header p {
    margin: 0;
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/*************************************************/
/* FORM                                          */
/*************************************************/

.login-form {

    display: flex;
    flex-direction: column;

    gap: 22px;

}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.form-group label {

    font-weight: 600;

    color: var(--dark-grey);

}

.form-group input {

    height: 50px;

    padding: 0 15px;

    border-radius: 10px;

    border: 1px solid var(--light-grey);

    outline: none;

    font-size: .95rem;

    transition: var(--transition);

}

.form-group input::placeholder {

    color: #888;

}

.form-group input:focus {

    border-color: var(--purple);

    box-shadow:
        0 0 0 4px rgba(131, 74, 168, .18);

}


/*************************************************/
/* PASSWORD                                      */
/*************************************************/

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 75px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    color: var(--dark-purple);

    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;

    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--purple);
}

.password-toggle:focus {
    outline: none;
    color: var(--purple);
}

/*************************************************/
/* OPTIONS                                       */
/*************************************************/

.form-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: .9rem;

}

.remember-option {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

}

.remember-option input {

    accent-color: var(--purple);

}

.forgot-password {

    color: var(--dark-purple);

    text-decoration: none;

    font-weight: 600;

}

.forgot-password:hover {

    color: var(--purple);

}


/*************************************************/
/* BUTTON                                        */
/*************************************************/

.login-button {

    height: 52px;

    border: none;

    border-radius: 12px;

    color: white;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--dark-purple));

    transition: var(--transition);

    box-shadow:
        0 10px 25px rgba(73, 14, 112, .35);

}

.login-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 18px 35px rgba(73, 14, 112, .45);

}

.login-button:active {

    transform: scale(.98);

}

.login-button:disabled {

    opacity: .6;

    cursor: not-allowed;

}


/*************************************************/
/* MESSAGE                                       */
/*************************************************/

.login-message {

    display: none;

    padding: 12px;

    border-radius: 10px;

    font-size: .9rem;

}

.login-message.error {

    display: block;

    background: rgba(204, 51, 102, .12);

    color: var(--pink);

    border: 1px solid rgba(204, 51, 102, .25);

}

.login-message.success {

    display: block;

    background: rgba(50, 74, 109, .12);

    color: var(--dark-blue);

    border: 1px solid rgba(50, 74, 109, .25);

}


/*************************************************/
/* MOBILE                                        */
/*************************************************/

@media (max-width: 600px) {

    .login-card {

        padding: 28px;

    }

    .login-header h1 {

        font-size: 1.8rem;

    }

    .form-options {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

    }

}


/*************************************************/
/* ACCESSIBILITY                                 */
/*************************************************/

@media (prefers-reduced-motion: reduce) {

    * {

        transition: none !important;

        animation: none !important;

    }

    .background-video {

        display: none;

    }

    body {

        background:
            linear-gradient(135deg,
                var(--dark-blue),
                var(--dark-purple),
                var(--near-black));

    }

}