@import url(../global/global.css);
@import url(../layout/header.css);

/* Auth Section start */
.auth-section {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

.auth-section .row {
    margin: 0;
}

/* Left Side - Image */
.auth-section .auth-image {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #C8E6D8 0%, #A8D5BA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.auth-section .auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.auth-section .auth-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Right Side - Form Container */
.auth-section .auth-form-container {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #FFFFFF;
}

.auth-section .auth-form-wrapper {
    width: 100%;
    max-width: 500px;
}

/* Header */
.auth-section .auth-header {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.auth-section .auth-header hr {
    flex: 1;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
}

.auth-section .auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 5px 0;
}

.auth-section .auth-subtitle {
    font-size: 13px;
    color: #FDB913;
    margin: 0;
    font-weight: 500;
    display: inline-block;
}

/* Tabs */
.auth-section .auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-text);
}

.auth-section .auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--color-three);
    background-color: var(--color-three);
    border-radius: 16px 16px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-section .auth-tab.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
}

.auth-section .auth-tab svg {
    width: 20px;
    height: 20px;
}

/* Tab Content */
.auth-section .auth-tab-content {
    display: none;
}

.auth-section .auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.auth-section .auth-form {
    width: 100%;
}

.auth-section .form-group {
    margin-bottom: 20px;
}

.auth-section .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    text-align: right;
}

@media (min-width:992px) {
    .auth-section .form-group {
        display: flex;
        align-items: center;
    }

    .auth-section .form-label {
        min-width: 130px;
    }
}

.auth-section .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #fff;
    color: var(--color-dark);
    transition: all 0.3s ease;
    text-align: right;
}

.auth-section .form-control::placeholder {
    color: var(--color-text);
    font-size: 13px;
}

.auth-section .form-control:focus {
    outline: none;
    border-color: var(--color-dark);
    background-color: #FFFFFF;
    box-shadow: none;
}

.auth-section select.form-control {
    padding: 0 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23909090' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
    color: var(--color-text);
}

.auth-section select.form-control:valid {
    color: var(--color-dark);
}

.auth-section select.form-control:disabled {
    background-color: #F0F0F0;
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-section select.form-control option {
    padding: 10px;
    font-size: 14px;
}

/* Password Wrapper */
.auth-section .password-wrapper {
    position: relative;
    width: 100%;
}

.auth-section .password-wrapper .form-control {
    padding-left: 45px;
}

.auth-section .password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.auth-section .password-toggle:hover {
    color: var(--color-dark);
}

.auth-section .password-toggle:focus {
    outline: none;
}

.auth-section .password-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-section .form-actions {
    margin-top: 30px;
}

.auth-section .primary-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .auth-section .auth-form-container {
        min-height: auto;
        padding: 40px 20px;
    }

    .auth-section .auth-title {
        font-size: 22px;
    }

    .auth-section .auth-subtitle {
        font-size: 12px;
    }

    .auth-section .auth-tab {
        padding: 10px 15px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .auth-section .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-section .auth-title {
        font-size: 20px;
    }

    .auth-section .auth-tab {
        padding: 10px 12px;
        font-size: 14px;
    }

    .auth-section .auth-tab svg {
        width: 18px;
        height: 18px;
    }

    .auth-section .form-label {
        font-size: 13px;
    }

    .auth-section .form-control {
        padding: 11px 13px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .auth-section .auth-form-container {
        padding: 30px 15px;
    }

    .auth-section .auth-header {
        margin-bottom: 25px;
    }

    .auth-section .auth-title {
        font-size: 18px;
    }

    .auth-section .auth-tabs {
        margin-bottom: 25px;
    }

    .auth-section .auth-tab {
        padding: 9px 10px;
        font-size: 13px;
        gap: 5px;
    }

    .auth-section .form-group {
        margin-bottom: 18px;
    }

    .auth-section .form-actions {
        margin-top: 25px;
    }

    .auth-section .primary-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* Auth Section end */
.modal {
    position: fixed;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px 31px;
    z-index: 1000;
    border-radius: 24px;
    width: 500px;
    height: fit-content;
    right: unset;
    display: none;
}

.modal__title {
    width: 200px;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    border-bottom: 1px solid;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.input-prefix {
    height: 100%;
    border-radius: 0 10px 10px 0;
    padding: 0 4px
}

.modal .main-title {
    font-size: 15px;
    line-height: 23px;
}

.modal .main-title {
    font-size: 15px;
    line-height: 23px;
}

.input-prefix ~ .form__input {
    padding-right: 40px;
}

@media only screen and (max-width: 576px) {
    .modal {
        max-width: 92vw;
        padding: 20px 15px;
    }
}


@media only screen and (max-width: 576px) {
    .modal {
        max-width: 92vw;
        padding: 20px 15px;
    }
}

