/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== Layout ===== */
:root {
    --stage-height: 40px;
}

/* Banner */
.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #56a8dc;
    color: white;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0;
    display: flex;
    gap: 13px;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    z-index: 1000;
    overflow: hidden;
}

.banner.stage {
    background-color: #56a8dc;
}

.banner.demo {
    background-color: #cfc20a;
}

.banner.vision {
    background-color: #ee605a;
}

.banner__item {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Page */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
}

/* ===== Main Content ===== */

/* Signup */
.signup {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.signup__card {
    display: flex;
    background-color: white;
    border: 0.5px solid #d6d6d6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1040px;
}

/* ===== Image Section ===== */

.image-gallery {
    position: relative;
    width: 520px;
    height: 609px;
    border-right: 0.5px solid #d6d6d6;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-gallery__background {
    position: absolute;
    width: 655px;
    height: 655px;
    top: -28.5px;
    left: -64px;
    overflow: hidden;
}

.image-gallery__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination */
.pagination {
    position: absolute;
    bottom: 24.5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pagination__dot {
    width: 23px;
    height: 4px;
    background-color: rgba(35, 31, 32, 0.3);
    border-radius: 8px;
}

.pagination__dot--active {
    width: 36px;
    background-color: white;
}

/* Logo */
.logo {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo__container {
    display: flex;
    align-items: center;
    height: 23px;
}

.logo__icon {
    height: 23px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo__text {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: #494949;
    letter-spacing: 0;
    white-space: nowrap;
    margin: 0;
}

/* ===== Form Section ===== */

.form-wrapper {
    position: relative;
    width: 520px;
    height: 609px;
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 0 8px 8px 0;
    justify-content: center;
}

.form-wrapper__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Header */
.form-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.form-header__title {
    font-family: 'Graphik', sans-serif;
    font-weight: 600;
    font-size: 30px;
    color: #231f20;
}

.form-header__title--success {
    color:#848484
}

.form-header__subtitle {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 23.8px;
    color: #231f20;
    letter-spacing: 0;
}

.form-header__message {
    display: none;
    font-family: 'Graphik', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 17.6px;
    letter-spacing: 0;
    margin-top: 8px;
}

.form-header__message--error {
    color: #f70707;
    display: block;
}

.form-header__message--success {
    font-size: 20px;
    display: block;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__row {
    display: flex;
    gap: 12px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form__group--full-width {
    width: 100%;
}

.form__label {
    font-family: 'Graphik', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 16.9px;
    color: #231f20;
    letter-spacing: 0;
}

.form__required {
    color: #f70707;
}

.form__input {
    height: 44px;
    padding: 0 12px;
    border: 0.5px solid #848484;
    border-radius: 6px;
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 17.6px;
    color: #231f20;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input::placeholder {
    color: #848484;
}

.form__input:focus {
    outline: none;
    border-color: #2c21e6;
    box-shadow: 0 0 0 2px rgba(44, 33, 230, 0.1);
}

/* Buttons */
.form__buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.btn {
    height: 44px;
    padding: 0 8px;
    border-radius: 6px;
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 17.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn--secondary {
    border: 0.5px solid #2c21e6;
    color: #2c21e6;
    background-color: white;
    width: 110px;
}

.btn--secondary:hover {
    background-color: #f8f8f8;
}

.btn--secondary:active {
    background-color: #f0f0f0;
}

.btn--primary {
    flex: 1;
    background-color: #2C21E6;
    color: white;
}

.btn--primary:hover {
    background-color: #170CC9;
}

.btn--primary:active {
    background-color: #170CC9;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Checkbox */
.form__checkbox-group {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.form__checkbox {
    width: 20px;
    height: 20px;
    margin-top: 0;
    cursor: pointer;
    accent-color: #2c21e6;
    flex-shrink: 0;
}

.form__checkbox-label {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15.3px;
    color: #848484;
    cursor: pointer;
    margin: 0;
}

.form__link {
    color: #494949;
    text-decoration: underline;
}

.form__link:hover {
    color: #231f20;
}

/* Forgot Password */
.form__forgot {
    width: 100%;
    text-align: right;
}

.form__forgot-link {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 17.6px;
    color: #231f20;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    cursor: pointer;
}

.form__forgot-link:hover {
    color: #494949;
}

/* Form Footer */
.form__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.form__footer-text {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 17.6px;
    color: #494949;
}

.form__footer-link {
    color: #494949;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.form__footer-link:hover {
    color: #231f20;
}

.form__terms {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15.3px;
    color: #848484;
}

.form__terms-link {
    color: #848484;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.form__terms-link:hover {
    color: #494949;
}

/* ===== Footer ===== */

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer__item {
    display: flex;
    gap: 4px;
    align-items: center;
}

.footer__item-icon {
    width: 20px;
    display: block;
}

.footer__item-text {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15.3px;
    color: #494949;
    letter-spacing: 0;
}

.footer__text {
    font-family: 'Graphik', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15.3px;
    color: #494949;
    letter-spacing: 0;
}

/* ===== Responsive ===== */

@media (max-width: 1200px) {
    .signup__card {
        flex-direction: column;
        max-width: 400px;
    }

    .image-gallery {
        display: none;
        /* width: 100%;
        height: 400px;
        border-radius: 8px 8px 0 0;
        border-right: 0.5px solid #d6d6d6; */
    }

    .form-wrapper {
        width: 100%;
        border-radius: 0 0 8px 8px;
        height: 530px;
        padding: 40px 32px;
    }

    .form__row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .banner {
        font-size: 12px;
        padding: 4px 8px;
        gap: 10px;
    }

    .page {
        padding: 60px 16px 16px 16px;
        gap: 12px;
    }

    .image-gallery {
        display: none;
    }

    .form-wrapper {
        width: 100%;
        padding: 32px 24px;
    }

    .form-header__title {
        font-size: 24px;
        line-height: 32px;
    }

    .form-header__subtitle {
        font-size: 15px;
        line-height: 21px;
    }

    .btn {
        font-size: 12px;
    }
}
