
/* =========================================================
   REGISTER PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}


/* =========================================================
   BODY
========================================================= */

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #1e40af, transparent 35%),
        radial-gradient(circle at bottom right, #2563eb, transparent 35%),
        #020617;

    overflow-x: hidden;
}


/* =========================================================
   REGISTER PAGE WRAPPER
========================================================= */

.register-container {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 120px 20px 40px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   ANIMATED BACKGROUND
========================================================= */

body::before,
body::after {
    content: "";
    position: fixed;

    border-radius: 50%;
    filter: blur(80px);

    pointer-events: none;

    animation: floating 8s infinite alternate;

    z-index: 0;
}

body::before {
    width: 350px;
    height: 350px;

    background: #2563eb;

    top: -120px;
    left: -120px;

    opacity: .4;
}

body::after {
    width: 300px;
    height: 300px;

    background: #38bdf8;

    bottom: -100px;
    right: -100px;

    opacity: .3;

    animation-delay: 2s;
}


@keyframes floating {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(40px);
    }
}


/* =========================================================
   REGISTER CARD
========================================================= */

.register-card {
    width: min(430px, 100%);

    padding: 45px;

    border-radius: 25px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .15);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .5);

    animation: showCard .8s ease;

    position: relative;
    z-index: 2;
}


@keyframes showCard {
    from {
        opacity: 0;

        transform:
            translateY(50px)
            scale(.9);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   TITLE
========================================================= */

.register-card h2 {
    text-align: center;

    color: white;

    font-size: clamp(25px, 5vw, 32px);

    margin-bottom: 35px;

    letter-spacing: 1px;
}


/* =========================================================
   INPUTS
========================================================= */

.register-card input {
    width: 100%;

    padding: 15px 18px;

    margin-bottom: 18px;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, .2);

    background: rgba(255, 255, 255, .08);

    color: white;

    outline: none;

    font-size: 15px;

    transition: .35s;
}


.register-card input:focus {
    border-color: #38bdf8;

    box-shadow:
        0 0 20px rgba(56, 189, 248, .5);

    transform: translateY(-3px);
}


.register-card input::placeholder {
    color: #cbd5e1;
}


/* =========================================================
   BUTTON
========================================================= */

.register-card button {
    width: 100%;

    min-height: 52px;

    padding: 15px;

    margin-top: 10px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #38bdf8
        );

    color: white;

    font-size: 17px;

    font-weight: bold;

    transition: .35s;
}


.register-card button:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(37, 99, 235, .5);
}


.register-card button:active {
    transform: translateY(-1px);
}


/* =========================================================
   TEXT
========================================================= */

.register-card p {
    margin-top: 25px;

    text-align: center;

    color: #cbd5e1;

    font-size: 15px;

    line-height: 1.8;
}


.register-card a {
    color: #38bdf8;

    text-decoration: none;

    font-weight: bold;

    transition: .3s;
}


.register-card a:hover {
    color: white;
}


/* =========================================================
   DJANGO ERRORS
========================================================= */

.errorlist {
    list-style: none;

    color: #fca5a5;

    font-size: 13px;

    margin-bottom: 10px;

    line-height: 1.7;
}


.form-errors {
    background: rgba(239, 68, 68, .15);

    border: 1px solid rgba(248, 113, 113, .4);

    padding: 15px;

    border-radius: 12px;

    margin-bottom: 20px;

    animation: errorAnimation .4s ease;
}


.form-errors p {
    color: #fca5a5;

    margin: 5px 0;

    font-size: 14px;

    line-height: 1.7;
}


@keyframes errorAnimation {
    from {
        opacity: 0;

        transform:
            translateY(-15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .register-container {
        padding:
            110px
            18px
            35px;
    }

    .register-card {
        width: min(430px, 100%);

        padding: 35px 28px;

        border-radius: 22px;
    }

    .register-card h2 {
        margin-bottom: 28px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    .register-container {
        min-height: 100svh;

        padding:
            105px
            15px
            30px;
    }

    .register-card {
        width: 100%;

        padding:
            30px
            20px;

        border-radius: 20px;
    }

    .register-card h2 {
        font-size: 26px;

        margin-bottom: 25px;
    }

    .register-card input {
        padding: 14px 15px;

        font-size: 14px;

        margin-bottom: 15px;
    }

    .register-card button {
        min-height: 50px;

        padding: 13px;

        font-size: 16px;
    }

    .register-card p {
        font-size: 14px;

        margin-top: 20px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .register-container {
        padding:
            100px
            10px
            25px;
    }

    .register-card {
        padding:
            25px
            15px;

        border-radius: 18px;
    }

    .register-card h2 {
        font-size: 23px;

        margin-bottom: 22px;
    }

    .register-card input {
        padding:
            13px
            13px;
    }

    .register-card button {
        font-size: 15px;
    }

}
