﻿/* ===========================
   RESET & BASE
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.register-page {
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle at 15% 20%, #eaf1ff 0%, #f7faff 45%, #ffffff 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2vh 20px;
    overflow: hidden;
}

.register-wrapper {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 32px;
}

.register-panel {
    flex: 1.2;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ===========================
   CARD
=========================== */

.register-box {
    width: 100%;
    max-width: 460px;
    max-height: 100%;
    background: #ffffff;
    padding: clamp(12px, 2.6vh, 28px) clamp(24px, 4.5vw, 40px);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(30, 64, 175, .10), 0 4px 12px rgba(30, 64, 175, .06);
    border: 1px solid #eef2f9;
    position: relative;
    animation: fadeUp .5s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(4px, 1vh, 10px);
}

    .register-box form {
        display: flex;
        flex-direction: column;
        gap: clamp(4px, 1vh, 10px);
        width: 100%;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================
   LOGO & HEADING
=========================== */

#logo {
    width: clamp(46px, 7vh, 72px);
    border-radius: 10px;
}

h1 {
    font-size: clamp(18px, 3vh, 24px);
    font-weight: 700;
    color: #101828;
    text-align: center;
    letter-spacing: -.3px;
}

.sub-title {
    text-align: center;
    color: #667085;
    font-size: clamp(11px, 1.6vh, 13px);
    line-height: 1.4;
    margin-bottom: clamp(2px, 0.6vh, 6px);
}


/* ===========================
   FORM GROUPS
=========================== */

.form-group {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

label {
    display: block;
    font-size: clamp(11px, 1.5vh, 13px);
    font-weight: 600;
    color: #344054;
    margin-bottom: 4px;
    margin-left: 2px;
}


/* ===========================
   INPUTS
=========================== */

.input-group {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.input-group-text {
    background: #f5f9ff;
    border: 2px solid #e3e8f0;
    color: #2563eb;
    font-size: clamp(13px, 1.9vh, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 12px;
    font-weight: 600;
}

    .input-group-text:not(.prefix):not(:first-child) {
        border-left: none;
    }

.input-group > .input-group-text:first-child {
    border-right: none;
}

.input-group > .input-group-text:last-child {
    border-left: none;
}

.form-control {
    height: clamp(34px, 5.6vh, 42px);
    font-size: clamp(12px, 1.7vh, 14px);
    border: 2px solid #e3e8f0;
}

.input-group .form-control {
    border-left: none;
    border-right: none;
}

.form-control::placeholder {
    font-size: clamp(12px, 1.6vh, 13px);
    color: #8a94a6;
}

.form-control:focus {
    border-color: #2563eb !important;
    box-shadow: none !important;
    outline: none;
}

.input-group:focus-within .input-group-text {
    border-color: #2563eb;
}

.toggle-eye {
    cursor: pointer;
    color: #8a94a6 !important;
}


/* ===========================
   VALIDATION
=========================== */

.validation-message {
    display: block;
    margin-top: 3px;
    margin-left: 2px;
    margin-bottom: 0;
    font-size: clamp(10px, 1.3vh, 12px);
    color: #dc3545;
    line-height: 1.2;
}

.input-validation-error {
    border-color: #dc3545 !important;
    box-shadow: none;
}

.field-validation-valid {
    display: none;
}


/* ===========================
   BUTTON
=========================== */

.register-btn {
    width: 100%;
    max-width: 360px;
    margin: clamp(4px, 1vh, 10px) auto 0 auto;
    height: clamp(36px, 6.2vh, 46px);
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #4f8cff);
    color: #ffffff;
    font-size: clamp(13px, 1.9vh, 15px);
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .25s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .register-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(37, 99, 235, .32);
        color: #ffffff;
    }

    .register-btn:active {
        transform: translateY(0);
        box-shadow: 0 6px 14px rgba(37, 99, 235, .25);
    }


/* ===========================
   FOOTER
=========================== */

.Already_have_an_account {
    text-align: center;
    color: #667085;
    font-size: clamp(11px, 1.5vh, 13px);
}

a {
    text-decoration: none;
    font-weight: 600;
    color: #2563eb;
}

    a:hover {
        text-decoration: underline;
    }


/* ===========================
   RIGHT SIDE — VISUAL PANEL
=========================== */

.register-panel-right {
    flex: 0.8;
}

.register-visual {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 90%;
    max-height: 520px;
    margin: auto;
    border-radius: 26px;
    background: linear-gradient(160deg, #3b6fd6 0%, #2f5cc0 55%, #294f9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(30, 64, 175, .18);
}

    .register-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(10, 20, 50, .18);
        z-index: 1;
    }

.register-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(14px, 3vh, 28px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.6vh, 14px);
    max-height: 100%;
}

.register-image-el {
    width: clamp(100px, 22vh, 170px);
    max-width: 60%;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
    animation: float 3.5s ease-in-out infinite;
}

.register-visual-content h2 {
    font-size: clamp(15px, 2.3vh, 19px);
    font-weight: 700;
}

.register-visual-content p {
    font-size: clamp(11px, 1.5vh, 13px);
    color: #cfe0ff;
    line-height: 1.5;
    max-width: 240px;
    margin: 0 auto;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: .10;
    background: #ffffff;
    z-index: 0;
}

.blob-1 {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -40px;
}

.blob-2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -30px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 991px) {

    .register-page {
        overflow-y: auto;
        align-items: flex-start;
    }

    .register-wrapper {
        flex-direction: column;
        height: auto;
    }

    .register-panel-right {
        display: none !important;
    }

    .register-box {
        padding: 20px 24px;
        max-height: none;
    }
}

@media (max-width: 420px) {

    .form-group,
    .register-btn {
        max-width: 100%;
    }
}
