
/* ==========================================
   REGISTRATION PAGE
========================================== */

.registration-page {
    --primary: #4b176f;
    --primary-dark: #280c42;
    --gold: #c59a4a;
    --muted: #80788a;
    --border: #e8e2ec;

    margin: 0;
    background: #ffffff;
    color: #251a30;
    font-family: 'DM Sans', sans-serif;
}

.registration-page * {
    box-sizing: border-box;
}

.registration-page #reg-main {
    display: flex;
    min-height: 100vh;
}
.notification {
    width: 25%;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}
.notification.success{
    background-color: #4CAF50;
}
.notification.error {
    background-color: #e21304;
}


/* ==========================================
   LEFT PANEL
========================================== */

.registration-page .reg-main-left {
    position: relative;
    width: 45%;
    min-height: 100vh;
    padding: 70px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(198,151,75,0.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #58187c 0%,
            #391052 52%,
            #200b37 100%
        );
}

.registration-page .reg-main-left::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    top: -180px;
    right: -220px;
}

.registration-page .reg-main-left::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(197,154,74,0.25);
    border-radius: 50%;
    bottom: -180px;
    left: -150px;
}

.registration-page .brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.registration-page .brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    margin-bottom: 35px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.registration-page .brand-badge i {
    color: #e6c27b;
}

.registration-page .brand-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
}

.registration-page .brand-content h1 span {
    color: #e6c27b;
}

.registration-page .brand-description {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.78);
    margin-bottom: 35px;
}

.registration-page .brand-features {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.registration-page .brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.registration-page .brand-feature i {
    color: #e6c27b;
    font-size: 17px;
}

.registration-page .brand-footer {
    position: absolute;
    bottom: 35px;
    left: 7%;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}


/* ==========================================
   RIGHT PANEL
========================================== */

.registration-page .reg-main-right {
    width: 55%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 55px 45px;
    background: #ffffff;
}

.registration-page .registration-container {
    width: 100%;
    max-width: 490px;
}

.registration-page .logo {
    margin-bottom: 25px;
}

.registration-page .logo img {
    display: block;
    max-width: 190px;
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.registration-page .welcome-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.registration-page .reg-main-left-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 33px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.registration-page .welcome-description {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 25px;
}


/* ==========================================
   FORM FIELDS
========================================== */

.registration-page .reg-form {
    margin-bottom: 18px;
}

.registration-page .form-class {
    width: 100%;
}

.registration-page .reg-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #33253c;
}

.registration-page .input-wrapper {
    position: relative;
    width: 100%;
}

.registration-page .input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #988ca3;
    font-size: 14px;
    pointer-events: none;
}

.registration-page .reg-form input,
.registration-page .reg-form select {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfafd;
    padding: 0 16px 0 45px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: #251a30;
    transition: 0.25s ease;
}

.registration-page .reg-form input::placeholder {
    color: #a59bac;
}

.registration-page .reg-form input:focus,
.registration-page .reg-form select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(75,23,111,0.08);
}

.registration-page .reg-form select {
    cursor: pointer;
    padding-right: 30px;
}


/* ==========================================
   PASSWORD FIELDS
========================================== */

.registration-page .reg-form .input-wrapper:has(.eye-password) input {
    padding-right: 50px;
}

.registration-page .eye-password {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #81768b;
    font-size: 15px;
    z-index: 2;
}

.registration-page .eye-password:hover {
    color: var(--primary);
}

.registration-page .password-hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-style: normal;
    line-height: 1.6;
    color: var(--muted);
}


/* ==========================================
   SIGN UP BUTTON
========================================== */

.registration-page #sign-up {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(110deg, #592080, #391052);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(75,23,111,0.18);
    transition: 0.25s ease;
}

.registration-page #sign-up:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(75,23,111,0.24);
}

.registration-page #sign-up:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.registration-page .signup-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: signup-spin 0.7s linear infinite;
}

@keyframes signup-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   REGISTRATION BUTTON LOADING ANIMATION
   ========================================== */

#sign-up:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.registration-spinner {
    display: inline-block;

    width: 18px;
    height: 18px;

    margin-right: 10px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;

    vertical-align: middle;

    animation: registrationSpin 0.7s linear infinite;
}

@keyframes registrationSpin {

    to {
        transform: rotate(360deg);
    }

}


/* ==========================================
   TERMS AND LOGIN LINK
========================================== */

.registration-page .term-use {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
    margin-top: 14px;
}

.registration-page .term-use a,
.registration-page .signup-section a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.registration-page .term-use a:hover,
.registration-page .signup-section a:hover {
    text-decoration: underline;
}

.registration-page .signup-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee8f0;
}

.registration-page .signup-section p {
    font-size: 13px;
    color: var(--muted);
}


/* ==========================================
   RESPONSIVENESS
========================================== */

@media (max-width: 991px) {

    .registration-page .reg-main-left {
        width: 40%;
        padding: 50px 5%;
    }

    .registration-page .reg-main-right {
        width: 60%;
        padding: 40px 30px;
    }

    .registration-page .brand-content h1 {
        font-size: 35px;
    }

    .registration-page .brand-description {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .notification {
            width: 90%;
    }
    .registration-page #reg-main {
        display: block;
    }

    .registration-page .reg-main-left {
        display: none;
    }

    .registration-page .reg-main-right {
        width: 100%;
        min-height: 100vh;
        padding: 30px 22px;
    }

    .registration-page .registration-container {
        max-width: 460px;
        margin: 0 auto;
    }

    .registration-page .logo img {
        max-width: 165px;
    }

    .registration-page .reg-main-left-header h3 {
        font-size: 30px;
    }

    .registration-page .reg-form input,
    .registration-page .reg-form select {
        height: 50px;
    }
}

@media (max-width: 380px) {

    .registration-page .reg-main-right {
        padding: 25px 17px;
    }

    .registration-page .reg-main-left-header h3 {
        font-size: 27px;
    }
}
