@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-latin.woff2') format('woff2');
}

html {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Animated background ── */

.loginPage {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.area {
    background: linear-gradient(334deg, #00baf1, rgb(22, 32, 66), #15487b, rgb(22, 32, 66));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite both;
    width: 100%;
    height: 100vh;
    position: absolute;
}

@keyframes gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1)  { left: 25%; width: 80px;  height: 80px;  animation-delay: 0s; }
.circles li:nth-child(2)  { left: 10%; width: 20px;  height: 20px;  animation-delay: 2s;  animation-duration: 12s; }
.circles li:nth-child(3)  { left: 70%; width: 20px;  height: 20px;  animation-delay: 4s; }
.circles li:nth-child(4)  { left: 40%; width: 60px;  height: 60px;  animation-delay: 0s;  animation-duration: 18s; }
.circles li:nth-child(5)  { left: 65%; width: 20px;  height: 20px;  animation-delay: 0s; }
.circles li:nth-child(6)  { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7)  { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8)  { left: 50%; width: 25px;  height: 25px;  animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9)  { left: 20%; width: 15px;  height: 15px;  animation-delay: 2s;  animation-duration: 35s; }
.circles li:nth-child(10) { left: 85%; width: 550px; height: 650px; animation-delay: 0s;  animation-duration: 51s; }
.circles li:nth-child(11) { left: -25%; bottom: -50%; width: 550px; height: 650px; animation-delay: 0s; animation-duration: 31s; }

@keyframes animate {
    0%   { transform: translateY(0) rotate(0deg);      opacity: 1; border-radius: 0; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* ── Login card ── */

.loginContainer {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    position: relative;
    border-radius: 20px;
    box-shadow: 14px 20px 20px 3px rgba(50, 50, 50, 0.28);
    padding: 60px;
}

.loginLogo {
    width: 386px;
    margin-bottom: 35px;
}

.loginForm {
    display: flex;
    flex-direction: column;
    width: 386px;
}

.loginFormSubTitle {
    font-family: 'Montserrat', sans-serif;
    color: #c6168d;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.loginFormInputs {
    display: flex;
    flex-direction: column;
}

/* ── Material outlined inputs ── */

.pure-material-textfield-outlined {
    --pure-material-primary-rgb: 198, 22, 141;
    --pure-material-onsurface-rgb: 0, 0, 0;
    --pure-material-safari-helper1: rgb(198, 22, 141);
    position: relative;
    display: inline-block;
    padding-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    width: 100%;
}

.pure-material-textfield-outlined > input {
    box-sizing: border-box;
    margin: 0;
    border: solid 1px rgba(195, 195, 195, 0.6);
    border-top-color: transparent;
    border-radius: 4px;
    padding: 15px 13px;
    width: 100%;
    height: inherit;
    color: rgba(0, 0, 0, 0.87);
    background-color: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    caret-color: rgb(198, 22, 141);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

.pure-material-textfield-outlined > input + span {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    border-color: rgba(195, 195, 195, 0.6);
    width: 100%;
    max-height: 100%;
    color: rgba(195, 195, 195, 0.6);
    font-size: 75%;
    line-height: 15px;
    cursor: text;
    transition: color 0.2s, font-size 0.2s, line-height 0.2s;
}

.pure-material-textfield-outlined > input + span::before,
.pure-material-textfield-outlined > input + span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px rgba(195, 195, 195, 0.6);
    min-width: 10px;
    height: 8px;
    pointer-events: none;
    box-shadow: inset 0 1px transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pure-material-textfield-outlined > input + span::before {
    margin-right: 4px;
    border-left: solid 1px transparent;
    border-radius: 4px 0;
}

.pure-material-textfield-outlined > input + span::after {
    flex-grow: 1;
    margin-left: 4px;
    border-right: solid 1px transparent;
    border-radius: 0 4px;
}

/* Hover */
.pure-material-textfield-outlined:hover > input {
    border-color: rgba(195, 195, 195, 0.87);
    border-top-color: transparent;
}

.pure-material-textfield-outlined:hover > input + span::before,
.pure-material-textfield-outlined:hover > input + span::after {
    border-top-color: rgba(195, 195, 195, 0.87);
}

.pure-material-textfield-outlined:hover > input:not(:focus):placeholder-shown {
    border-color: rgba(195, 195, 195, 0.87);
}

/* Placeholder-shown (label floated down) */
.pure-material-textfield-outlined > input:not(:focus):placeholder-shown {
    border-top-color: rgba(0, 0, 0, 0.6);
}

.pure-material-textfield-outlined > input:not(:focus):placeholder-shown + span {
    font-size: inherit;
    line-height: 68px;
}

.pure-material-textfield-outlined > input:not(:focus):placeholder-shown + span::before,
.pure-material-textfield-outlined > input:not(:focus):placeholder-shown + span::after {
    border-top-color: transparent;
}

/* Focus */
.pure-material-textfield-outlined > input:focus {
    border-color: rgb(198, 22, 141);
    border-top-color: transparent;
    box-shadow:
        inset 1px 0 var(--pure-material-safari-helper1),
        inset -1px 0 var(--pure-material-safari-helper1),
        inset 0 -1px var(--pure-material-safari-helper1);
}

.pure-material-textfield-outlined > input:focus + span {
    color: rgb(198, 22, 141);
}

.pure-material-textfield-outlined > input:focus + span::before,
.pure-material-textfield-outlined > input:focus + span::after {
    border-top-color: var(--pure-material-safari-helper1) !important;
    box-shadow: inset 0 1px var(--pure-material-safari-helper1);
}

/* Disabled */
.pure-material-textfield-outlined > input:disabled,
.pure-material-textfield-outlined > input:disabled + span {
    border-color: rgba(0, 0, 0, 0.38) !important;
    border-top-color: transparent !important;
    color: rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

.pure-material-textfield-outlined > input:disabled + span::before,
.pure-material-textfield-outlined > input:disabled + span::after {
    border-top-color: rgba(0, 0, 0, 0.38) !important;
}

.pure-material-textfield-outlined > input:disabled:placeholder-shown,
.pure-material-textfield-outlined > input:disabled:placeholder-shown + span {
    border-top-color: rgba(0, 0, 0, 0.38) !important;
}

.pure-material-textfield-outlined > input:disabled:placeholder-shown + span::before,
.pure-material-textfield-outlined > input:disabled:placeholder-shown + span::after {
    border-top-color: transparent !important;
}

/* Safari fast transition */
@media not all and (min-resolution: .001dpcm) {
    @supports (-webkit-appearance: none) {
        .pure-material-textfield-outlined > input,
        .pure-material-textfield-outlined > input + span,
        .pure-material-textfield-outlined > input + span::before,
        .pure-material-textfield-outlined > input + span::after {
            transition-duration: 0.1s;
        }
    }
}

.passwordField {
    margin-top: 20px;
}

/* ── Recovery link ── */

.loginFormRecoveryLink {
    margin-top: 10px;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #979797;
    cursor: pointer;
}

.loginFormRecoveryLink a {
    color: #979797;
    text-decoration: none;
    font-size: 0.9rem;
}

.loginFormRecoveryLink a:hover {
    color: #c6168d;
}

/* ── Button ── */

button {
    margin-top: 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(-45deg, #162042, #162042);
    box-shadow: 0 0 2px rgba(153, 144, 0, 0);
    outline: none;
    width: 100%;
    font-weight: 500;
}

button.ripple {
    background-position: center;
    transition: background 0.8s;
}

button.ripple:hover {
    background: #162042 radial-gradient(circle, #c6168d 1%, #df32a0 1%) center / 15000%;
}

button.ripple:active {
    background-color: #4c1e58;
    background-size: 100%;
    transition: background 0s;
}

/* ── Misc links ── */

a {
    color: #c6168d;
    font-size: 12px;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.forgot {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
}

/* ── Error / success messages ── */

.success, .error {
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

.error {
    color: #f44336;
}

/* ── Contact ── */

.contact {
    margin-top: 16px;
    text-align: center;
}

.contact p {
    font-size: 11px;
    color: #979797;
    margin: 0;
}

.contact a {
    color: #c6168d;
    font-size: 11px;
}

/* ── Reset page ── */

.resetHint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #585a5e;
    margin-bottom: 10px;
}

.resetUsername {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #585a5e;
    margin-bottom: 16px;
}

p.password_rules {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #585a5e;
    text-align: center;
    margin-bottom: 12px;
}

/* ── Footer ── */

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 11px;
    color: #a8acb2;
}

.footer a {
    color: #a8acb2;
    font-size: 11px;
}
