/* =====================================================
   GLOBAL
===================================================== */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: linear-gradient(
        135deg,
        #f8f9fb 0%,
        #eef1f5 100%
    );
}


/* =====================================================
   REGISTER PAGE CONTAINER
===================================================== */

.register {
    width: 600px;
    max-width: 92%;
    margin: 70px auto;
    padding: 40px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f5f5f5
    );

    border-radius: 25px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.10),
        inset 0 0 20px rgba(212, 175, 55, 0.05);

    position: relative;
    overflow: hidden;

    animation: fadeUp 0.7s ease;
}


/* =====================================================
   GOLD BACKGROUND GLOW
===================================================== */

.register::before {
    content: "";
    position: absolute;

    width: 400px;
    height: 400px;

    top: -180px;
    right: -180px;

    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.12),
        transparent 70%
    );

    pointer-events: none;
}


/* =====================================================
   HEADING
===================================================== */

/*
   Your current HTML has h1 outside the form,
   therefore style the page h1 directly.
*/

h1 {
    text-align: center;

    margin-top: 40px;
    margin-bottom: 25px;

    font-size: 32px;
    font-weight: 700;

    background: linear-gradient(
        45deg,
        #b8962e,
        #d4af37,
        #f5d76e
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}


/* =====================================================
   FORM
===================================================== */

#registrationForm {
    width: 600px;
    max-width: 92%;

    margin: 0 auto 60px;

    padding: 40px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f5f5f5
    );

    border-radius: 25px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.10),
        inset 0 0 20px rgba(212, 175, 55, 0.05);

    position: relative;

    overflow: hidden;

    animation: fadeUp 0.7s ease;
}


/* =====================================================
   FORM GOLD GLOW
===================================================== */

#registrationForm::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -180px;
    right: -180px;

    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.10),
        transparent 70%
    );

    pointer-events: none;
}


/* =====================================================
   FORM FIELD
===================================================== */

.label {
    position: relative;

    width: 100%;

    margin-bottom: 24px;

    z-index: 1;
}


/* =====================================================
   INPUT
===================================================== */

.label input {
    width: 100%;

    height: 52px;

    padding: 14px 15px;

    border: 1px solid #dcdcdc;

    border-radius: 12px;

    background: #ffffff;

    color: #333;

    font-size: 14px;

    outline: none;

    transition: all 0.3s ease;
}


/* =====================================================
   INPUT HOVER
===================================================== */

.label input:hover {
    border-color: #c8c8c8;
}


/* =====================================================
   INPUT FOCUS
===================================================== */

.label input:focus {
    border-color: #d4af37;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.10),
        0 0 10px rgba(212, 175, 55, 0.20);
}


/* =====================================================
   FLOATING LABEL
===================================================== */

.label label {
    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    padding: 0 5px;

    background: #ffffff;

    color: #999;

    font-size: 13px;

    pointer-events: none;

    transition: all 0.25s ease;
}


/* =====================================================
   FLOATING LABEL ACTIVE
===================================================== */

.label input:focus + label,
.label input:not(:placeholder-shown) + label {
    top: -8px;

    transform: none;

    font-size: 11px;

    font-weight: 600;

    color: #d4af37;
}


/* =====================================================
   VALIDATION TEXT
===================================================== */

.label span {
    display: block;

    min-height: 17px;

    margin-top: 5px;
    padding-left: 3px;

    font-size: 12px;

    line-height: 17px;

    color: #dc3545;
}


/* =====================================================
   EMAIL SUCCESS / PASSWORD SUCCESS
===================================================== */

#eemail,
#c_pass {
    transition: all 0.2s ease;
}


/*
   Your JS displays:
   ✓ Email is available.
   ✓ Passwords match.
*/

#eemail:not(:empty),
#c_pass:not(:empty) {
    font-size: 12px;
}


/* =====================================================
   DJANGO ERROR MESSAGE
===================================================== */

.error-message {
    position: relative;

    z-index: 2;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 15px;

    background: #ffe5e5;

    color: #d8000c;

    border: 1px solid #ffb3b3;

    border-radius: 10px;

    font-size: 14px;

    text-align: center;

    animation: fadeIn 0.4s ease;
}


/* =====================================================
   SUCCESS MESSAGE
===================================================== */

.success-message {
    position: relative;

    z-index: 2;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 15px;

    background: #e6fff2;

    color: #0f9d58;

    border: 1px solid #b7f5d1;

    border-radius: 10px;

    font-size: 14px;

    text-align: center;

    animation: fadeIn 0.4s ease;
}


/* =====================================================
   FADE OUT
===================================================== */

.fade-out {
    opacity: 0;

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;

    transform: translateY(-5px);
}


/* =====================================================
   REGISTER BUTTON
===================================================== */

#registerBtn {
    width: 100%;

    height: 50px;

    margin-top: 5px;

    padding: 13px 20px;

    border: none;

    border-radius: 40px;

    background: linear-gradient(
        45deg,
        #d4af37,
        #f5d76e
    );

    color: #111;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow:
        0 5px 0 #b8962e,
        0 10px 25px rgba(212, 175, 55, 0.30);
}


/* =====================================================
   BUTTON HOVER
===================================================== */

#registerBtn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 0 #b8962e,
        0 15px 35px rgba(212, 175, 55, 0.45);
}


/* =====================================================
   BUTTON ACTIVE
===================================================== */

#registerBtn:active {
    transform: translateY(3px);

    box-shadow:
        0 2px 0 #b8962e,
        0 5px 15px rgba(212, 175, 55, 0.25);
}


/* =====================================================
   DISABLED / REGISTERING
===================================================== */

#registerBtn:disabled {
    background: linear-gradient(
        45deg,
        #c5c5c5,
        #e0e0e0
    );

    color: #777;

    cursor: not-allowed;

    transform: none;

    box-shadow:
        0 3px 0 #aaa,
        0 5px 15px rgba(0, 0, 0, 0.10);
}


/* =====================================================
   LOGIN / SWITCH TEXT
===================================================== */

.switch-text {
    margin-top: 22px;

    margin-bottom: 0;

    text-align: center;

    color: #555;

    font-size: 14px;
}


/* =====================================================
   SIGN IN LINK
===================================================== */

.switch-text a {
    position: relative;

    margin-left: 5px;

    color: #d4af37;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}


/* =====================================================
   LINK UNDERLINE
===================================================== */

.switch-text a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -3px;

    width: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        #d4af37,
        #f5d76e
    );

    transition: width 0.3s ease;
}


/* =====================================================
   LINK HOVER
===================================================== */

.switch-text a:hover {
    color: #b8962e;
}


.switch-text a:hover::after {
    width: 100%;
}


/* =====================================================
   OPTIONAL SOCIAL MEDIA
===================================================== */

.social-media {
    text-align: center;

    margin-top: 20px;
}


.social-media p {
    margin-bottom: 10px;

    color: #777;

    font-size: 13px;
}


.media-icons {
    display: flex;

    justify-content: center;

    gap: 12px;
}


.media-icons i {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    border-radius: 50%;

    color: #777;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);

    cursor: pointer;

    transition: all 0.3s ease;
}


.media-icons i:hover {
    background: linear-gradient(
        45deg,
        #d4af37,
        #f5d76e
    );

    color: #111;

    transform: scale(1.12);
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform: translateY(35px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(-10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    h1 {
        margin-top: 30px;

        font-size: 27px;
    }

    #registrationForm {
        width: 90%;

        max-width: 500px;

        padding: 30px;

        margin-bottom: 40px;
    }

    .label input {
        height: 50px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    h1 {
        margin-top: 25px;

        margin-bottom: 20px;

        font-size: 23px;
    }

    #registrationForm {
        width: 94%;

        padding: 24px 20px;

        border-radius: 18px;
    }

    .label {
        margin-bottom: 21px;
    }

    .label input {
        height: 49px;

        padding: 12px;

        font-size: 13px;
    }

    .label label {
        left: 12px;

        font-size: 12px;
    }

    .label input:focus + label,
    .label input:not(:placeholder-shown) + label {
        top: -7px;

        font-size: 10px;
    }

    .label span {
        font-size: 11px;
    }

    #registerBtn {
        height: 48px;

        font-size: 14px;
    }

    .switch-text {
        font-size: 13px;
    }

    .media-icons i {
        width: 35px;
        height: 35px;

        font-size: 13px;
    }

}


/* =====================================================
   EXTRA SMALL DEVICES
===================================================== */

@media (max-width: 360px) {

    h1 {
        font-size: 21px;
    }

    #registrationForm {
        width: 96%;

        padding: 20px 15px;
    }

    .label input {
        height: 47px;

        font-size: 12px;
    }

    #registerBtn {
        height: 46px;

        font-size: 13px;
    }

    .switch-text {
        font-size: 12px;
    }

}

/* ================================
   SUCCESS POPUP
================================ */

.register-success-popup {
    position: fixed;
    top: 25px;
    right: 25px;

    width: 380px;
    max-width: calc(100% - 30px);

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px 45px 18px 18px;

    background: #fff;

    border-left: 5px solid #198754;

    border-radius: 12px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .18);

    z-index: 99999;

    animation: popupSlideIn .4s ease;
}


/* SUCCESS ICON */

.success-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #198754;
    color: #fff;

    border-radius: 50%;

    font-size: 22px;
    font-weight: 700;
}


/* CONTENT */

.success-content h3 {
    margin: 0 0 4px;

    font-size: 16px;

    color: #198754;
}

.success-content p {
    margin: 0;

    font-size: 13px;

    color: #555;

    line-height: 1.5;
}


/* CLOSE */

.popup-close {
    position: absolute;

    top: 8px;
    right: 10px;

    border: none;
    background: transparent;

    color: #777;

    font-size: 22px;

    cursor: pointer;
}


/* OPEN */

@keyframes popupSlideIn {

    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* CLOSE */

.register-success-popup.hide {

    animation: popupSlideOut .4s ease forwards;

}

@keyframes popupSlideOut {

    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }

}


/* MOBILE */

@media (max-width: 480px) {

    .register-success-popup {

        top: 15px;
        left: 15px;
        right: 15px;

        width: auto;

    }

}

/* =====================================================
   LOGIN PAGE
===================================================== */

.login-page {
    width: 100%;
    min-height: 70vh;

    padding: 30px 15px 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =====================================================
   LOGIN HEADING
===================================================== */

.login-page h1 {
    width: 100%;

    margin: 25px 0;

    font-size: 32px;
    font-weight: 700;

    text-align: center;

    background: linear-gradient(
        45deg,
        #b8962e,
        #d4af37,
        #f5d76e
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}


/* =====================================================
   LOGIN FORM
===================================================== */

#loginForm {

    width: 600px;
    max-width: 92%;

    margin: 0 auto;

    padding: 40px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f5f5f5
    );

    border-radius: 25px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.10),
        inset 0 0 20px rgba(212, 175, 55, 0.05);

    position: relative;

    overflow: hidden;

    animation: fadeUp 0.7s ease;
}


/* GOLD GLOW */

#loginForm::before {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -180px;
    right: -180px;

    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.10),
        transparent 70%
    );

    pointer-events: none;
}


/* =====================================================
   LOGIN INPUT
===================================================== */

#loginForm .label {

    position: relative;

    width: 100%;

    margin-bottom: 24px;

    z-index: 1;
}


#loginForm .label input {

    width: 100%;

    height: 52px;

    padding: 14px 15px;

    border: 1px solid #dcdcdc;

    border-radius: 12px;

    background: #ffffff;

    color: #333;

    font-size: 14px;

    outline: none;

    transition: all 0.3s ease;
}


#loginForm .label input:hover {

    border-color: #c8c8c8;
}


#loginForm .label input:focus {

    border-color: #d4af37;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.10),
        0 0 10px rgba(212, 175, 55, 0.20);
}


/* =====================================================
   FLOATING LABEL
===================================================== */

#loginForm .label label {

    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    padding: 0 5px;

    background: #ffffff;

    color: #999;

    font-size: 13px;

    pointer-events: none;

    transition: all 0.25s ease;
}


#loginForm .label input:focus + label,
#loginForm .label input:not(:placeholder-shown) + label {

    top: -8px;

    transform: none;

    font-size: 11px;

    font-weight: 600;

    color: #d4af37;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

#loginBtn {

    width: 100%;

    height: 50px;

    margin-top: 5px;

    padding: 13px 20px;

    border: none;

    border-radius: 40px;

    background: linear-gradient(
        45deg,
        #d4af37,
        #f5d76e
    );

    color: #111;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow:
        0 5px 0 #b8962e,
        0 10px 25px rgba(212, 175, 55, 0.30);
}


#loginBtn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 0 #b8962e,
        0 15px 35px rgba(212, 175, 55, 0.45);
}


#loginBtn:active {

    transform: translateY(3px);

    box-shadow:
        0 2px 0 #b8962e,
        0 5px 15px rgba(212, 175, 55, 0.25);
}


#loginBtn:disabled {

    background: linear-gradient(
        45deg,
        #c5c5c5,
        #e0e0e0
    );

    color: #777;

    cursor: not-allowed;

    transform: none;

    box-shadow:
        0 3px 0 #aaa,
        0 5px 15px rgba(0, 0, 0, 0.10);
}


/* =====================================================
   LOGIN ERROR
===================================================== */

#loginError {

    position: relative;

    z-index: 5;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 15px;

    background: #ffe5e5;

    color: #d8000c;

    border: 1px solid #ffb3b3;

    border-radius: 10px;

    font-size: 14px;

    text-align: center;
}


/* =====================================================
   SWITCH TEXT
===================================================== */

#loginForm .switch-text {

    margin-top: 22px;

    margin-bottom: 0;

    text-align: center;

    color: #555;

    font-size: 14px;
}


#loginForm .switch-text a {

    position: relative;

    margin-left: 5px;

    color: #d4af37;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}


#loginForm .switch-text a:hover {

    color: #b8962e;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .login-page h1 {

        font-size: 27px;

        margin-top: 20px;
    }


    #loginForm {

        width: 90%;

        max-width: 500px;

        padding: 30px;
    }

}


@media (max-width: 480px) {

    .login-page {

        padding: 20px 10px 40px;
    }


    .login-page h1 {

        font-size: 23px;

        margin-top: 15px;

        margin-bottom: 20px;
    }


    #loginForm {

        width: 94%;

        padding: 24px 20px;

        border-radius: 18px;
    }


    #loginForm .label {

        margin-bottom: 21px;
    }


    #loginForm .label input {

        height: 49px;

        padding: 12px;

        font-size: 13px;
    }


    #loginForm .label label {

        left: 12px;

        font-size: 12px;
    }


    #loginForm .label input:focus + label,
    #loginForm .label input:not(:placeholder-shown) + label {

        top: -7px;

        font-size: 10px;
    }


    #loginBtn {

        height: 48px;

        font-size: 14px;
    }


    #loginForm .switch-text {

        font-size: 13px;
    }

}