/* Auth Page Styles */
.auth-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-main-content {
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Login Page Styles */
.login-container {
    display: flex;
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
}

/* TradeSocial Logo */
.tradesocial-logo {
    display: flex;
    justify-content: center;
}

.tradesocial-logo img {
    width: 183px;
    height: auto;
    max-width: 100%;
}

/* Left Side - Login Form Section */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 428px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

/* Login Header */
.login-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.logo-container {
    position: relative;
    z-index: 2;
}

.logo-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    width: 96px;
    height: 96px;
    position: relative;
}

.logo-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #7b7b7b, transparent);
    opacity: 0.1;
    border-radius: 9999px;
}

.logo-background {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    width: 64px;
    height: 64px;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 20, 0.03);
    position: relative;
}

.logo-background::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #ebebeb;
    border-radius: 9999px;
    pointer-events: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-title {
    font-family: 'Nulshock', 'Arial Black', 'Helvetica Bold', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #282e3a;
    text-align: center;
    margin: 0;
}

.login-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15.75px;
    line-height: 24px;
    color: #858c9b;
    text-align: center;
    letter-spacing: -0.176px;
    margin: 0;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    /* max-width: 323px; */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 12.25px;
    color: #0A0A0A;
    margin: 0;
}

.input-container {
    position: relative;
    background: #fbfbfb;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    color: #282e3a;
    letter-spacing: -0.084px;
    padding: 9.5px 0;
}

.form-input::placeholder {
    color: #abb0ba;
}

.form-input:focus {
    color: #282e3a;
}

.input-container:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 1px #2e6b51, 0 4px 12px rgba(46, 107, 81, 0.15);
    transition: all 0.3s ease;
}

.input-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle {
    cursor: pointer;
}

.error-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #dc3545;
    margin-top: 0.25rem;
}

.forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.forgot-link {
    font-family: 'Montserrat-Arabic', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 12.25px;
    color: #282e3a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2e6b51;
}

.login-button {
    background: #2e6b51;
    border: none;
    border-radius: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 12.25px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 3rem 3rem 0;
    position: relative;
    gap: 8px;
}

.button-spinner {
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

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

.login-button:hover {
    background: #245a43;
}

.signup-link {
    text-align: center;
    margin-top: 3rem;
}

.signup-link span {
    font-family: 'Nulshock', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #282e3a;
}

.signup-text {
    font-family: 'Nulshock', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #49ab81;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.signup-text:hover {
    color: #2e6b51;
}

/* Right Side - Background Section */
.login-background-section {
    flex: 1;
    position: relative;
    background: #b8e0cf;
    min-height: 100vh;
}

.background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/new-designs/images/login/login-background.svg');
    background-size: cover;
    background-position: center;
}

/* Testimonial Card */
.testimonial-card {
    position: absolute;
    bottom: 40px;
    left: 34px;
    right: 34px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(52px);
    -webkit-backdrop-filter: blur(52px);
    border-radius: 20px;
    padding: 16px;
    text-align: justify;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    color: #ffffff;
    margin: 0;
    text-align: justify;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-name {
    font-family: 'Encode Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: normal;
    color: #c7cad1;
    margin: 0;
    font-variation-settings: 'wdth' 100;
}

.author-title {
    font-family: 'Encode Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: normal;
    color: #c7cad1;
    margin: 0;
    font-variation-settings: 'wdth' 100;
}

.testimonial-quote {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.testimonial-quote svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    inset: 9.86% 17.71% 84.91% 69.59%;
    pointer-events: none;
}

.decoration-group-1,
.decoration-group-2,
.decoration-group-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.1"/><circle cx="50" cy="50" r="20" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.decoration-group-1 {
    inset: 9.86% 77.74% 84.91% 17.86%;
}

.decoration-group-2 {
    inset: 10.07% 77.23% 85.91% 17.71%;
}

.decoration-group-3 {
    inset: 10.84% 69.59% 85.87% 23.17%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-form-section {
        padding: 1rem;
        min-height: auto;
        flex: none;
    }

    .login-background-section {
        display: none !important;
    }

    .testimonial-card {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 2rem;
    }
}

@media (max-width: 768px) {
    .login-form-wrapper {
        gap: 2rem;
    }

    .login-form {
        max-width: 100%;
    }

    .testimonial-card {
        margin: 1rem;
        padding: 12px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .author-name,
    .author-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 0.5rem;
    }

    .logo-overlay {
        width: 80px;
        height: 80px;
    }

    .logo-background {
        width: 56px;
        height: 56px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .login-title {
        font-size: 12px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .login-form-section {
        padding: 0.25rem;
    }

    .login-form-wrapper {
        gap: 1.5rem;
    }

    .login-form {
        gap: 1rem;
    }

    .form-group {
        gap: 0.25rem;
    }

    .login-button {
        height: 44px;
        font-size: 12px;
    }
}