
.pe-auth-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    padding-top: 0 !important;
}

/* Main Wrapper */
.pe-auth-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at center, rgba(69, 74, 184, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

/* Auth Container (section) */
.pe-auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Decorative Panel */
.pe-auth-left-panel {
    background: transparent;
    position: relative;
    overflow: hidden;
    width: 100px;
}

.pe-auth-left-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: linear-gradient(
            -45deg,
            rgb(48, 166, 112),
            rgb(57, 194, 132),
            rgb(44, 153, 104),
            rgb(38, 133, 90),
            rgb(56, 192, 131)
    );
    background-size: 400% 400%;
    animation: pe-auth-gradientFlow 15s ease infinite, pe-auth-floatAround 25s ease-in-out infinite alternate;
    z-index: 0;
}

.pe-auth-left-panel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgb(245, 255, 222) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0,0,0,0) 70%);
    opacity: 0.8;
    z-index: 1;
    animation: pe-auth-pulseGlow 6s ease-in-out infinite, pe-auth-floatAround2 20s ease-in-out infinite alternate;
}

/* Center Content Panel */
.pe-auth-content-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
    padding-top: 140px;
    overflow-y: auto;
}

.pe-auth-card {
    width: 100%;
    max-width: 400px;
}

/* Back Button */
.pe-auth-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.pe-auth-back-button:hover {
    transform: translateX(-3px);
}

.pe-auth-back-button svg {
    width: 20px;
    height: 20px;
}

/* Logo */
.pe-auth-logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.pe-auth-logo img {
    width: 150px;
}

/* Title and Subtitle */
.pe-auth-title {
    font-family: var(--secondary-font), sans-serif;
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.pe-auth-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: var(--font-size-l);
}

/* Social Buttons */
.pe-auth-social-buttons {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pe-auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: var(--font-size-m);
}

.pe-auth-social-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.pe-auth-social-btn img {
    width: 18px;
    height: 18px;
}

/* Divider */
.pe-auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.pe-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.pe-auth-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #6c757d;
    font-size: var(--font-size-m);
    position: relative;
    z-index: 1;
}

/* Form Styles */
.pe-auth-form {
    width: 100%;
}

.pe-auth-form-group {
    margin-bottom: 1rem;
}

.pe-auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
    font-size: var(--font-size-m);
}

.pe-auth-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: var(--font-size-l);
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.pe-auth-form-group input:focus {
    outline: none;
    border-color: #454ab8;
    box-shadow: 0 0 0 3px rgba(69, 74, 184, 0.1);
}

/* Form Options */
.pe-auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Custom Checkbox */
.pe-auth-checkbox-component {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.pe-auth-checkbox-input {
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    border: 1.25px solid #bdc3cd;
    border-radius: 0.25em;
    background-color: white;
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pe-auth-checkbox-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.pe-auth-checkbox-label {
    font-weight: 500;
    cursor: pointer;
    font-size: var(--font-size-m);
}

/* Forgot Password Link */
.pe-auth-forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-m);
    transition: color 0.2s ease;
}

.pe-auth-forgot-password:hover {
    color: var(--color-primary-dark);
}

/* Signup Link */
.pe-auth-signup-link {
    text-align: center;
    font-size: var(--font-size-m);
    margin-top: 1rem;
}

.pe-auth-signup-link span {
    color: #6c757d;
    margin-right: 0.5rem;
}

.pe-auth-signup-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pe-auth-signup-link a:hover {
    color: var(--color-primary-dark);
}

/* Resend Link */
.pe-auth-resend-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: var(--font-size-m);
}

.pe-auth-resend-link a {
    color: #30a670;
    text-decoration: none;
}

.pe-auth-resend-link a:hover {
    text-decoration: underline;
}

/* Code Input Container */
.pe-auth-code-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.pe-auth-form-group .pe-auth-code-input-container input[type="text"] {
    width: 60px;
    height: 80px;
    text-align: center;
    padding: 0;
    font-size: var(--font-size-xxl);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pe-auth-form-group .pe-auth-code-input-container input[type="text"]:focus {
    outline: none;
    border-color: #454ab8;
    box-shadow: 0 0 0 3px rgba(69, 74, 184, 0.1);
}

/* Right Welcome Panel */
.pe-auth-welcome-panel {
    flex: 1;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.pe-auth-welcome-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: linear-gradient(
            -45deg,
            rgb(48, 166, 112),
            rgb(57, 194, 132),
            rgb(44, 153, 104),
            rgb(38, 133, 90),
            rgb(56, 192, 131)
    );
    background-size: 400% 400%;
    animation: pe-auth-gradientFlow 15s ease infinite, pe-auth-floatAround 25s ease-in-out infinite alternate;
    z-index: 0;
}

.pe-auth-welcome-panel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgb(245, 255, 222) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0,0,0,0) 70%);
    opacity: 0.8;
    z-index: 1;
    animation: pe-auth-pulseGlow 6s ease-in-out infinite, pe-auth-floatAround2 20s ease-in-out infinite alternate;
}

.pe-auth-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.pe-auth-circle-top {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(92, 184, 69, 0.3) 0%, rgba(79, 184, 69, 0.1) 100%);
    border-radius: 50%;
    filter: blur(160px);
}

.pe-auth-logo-watermark {
    position: absolute;
    bottom: -100px;
    right: 50px;
    opacity: 0.1;
    z-index: 1;
}

.pe-auth-logo-watermark img {
    width: 450px;
    height: 450px;
    filter: brightness(0) invert(1);
}

.pe-auth-welcome-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    max-width: 600px;
}

.pe-auth-welcome-title {
    font-family: var(--secondary-font);
    font-size: var(--font-size-xxl);
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    animation: pe-auth-fadeInUp 0.6s ease-out 0.2s forwards;
}

.pe-auth-welcome-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-l);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    animation: pe-auth-fadeInUp 0.6s ease-out 0.4s forwards;
}

/* Form Validation Styles */
.pe-auth-form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.pe-auth-error-message {
    color: #dc3545;
    font-size: var(--font-size-s);
    margin-top: 0.25rem;
    display: none;
}

.pe-auth-error-message.show {
    display: block;
}

/* Animations */
@keyframes pe-auth-gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pe-auth-floatAround {
    0% { transform: translate(0%, 0%); }
    25% { transform: translate(-0.5%, -0.25%); }
    50% { transform: translate(0.25%, -0.5%); }
    75% { transform: translate(-0.25%, 0.5%); }
    100% { transform: translate(0.5%, 0.25%); }
}

@keyframes pe-auth-pulseGlow {
    0% { opacity: 0.4; filter: blur(140px); }
    50% { opacity: 0.8; filter: blur(160px); }
    100% { opacity: 0.4; filter: blur(140px); }
}

@keyframes pe-auth-floatAround2 {
    0% { transform: translate(-50%, -50%) scale(1); }
    20% { transform: translate(-49.5%, -49.5%) scale(1.02); }
    40% { transform: translate(-50.5%, -50.5%) scale(0.98); }
    60% { transform: translate(-49.8%, -50.2%) scale(1.05); }
    80% { transform: translate(-50.2%, -49.8%) scale(0.95); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes pe-auth-fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pe-auth-content-panel {
    width: 40%;
    min-width: 600px;
}

@media (max-width: 991px) {
    .pe-auth-left-panel {
        background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
        position: relative;
        overflow: hidden;
        width: 10%;
    }

    .pe-auth-welcome-panel {
        width: 10%;
    }

    .pe-auth-welcome-content {
        display: none;
    }

    .pe-auth-content-panel {
        width: 80%;
    }
}

@media (max-width: 576px) {

    .pe-auth-left-panel {
        display: none;
    }

    .pe-auth-content-panel {
        border: 20px solid transparent;
        border-image: linear-gradient(to right, #30a670, #226f54) 1;
        border-image-slice: 1;
        width: 100%;
        padding: 1.5rem;
        padding-top: 80px;
        min-width: auto;
        max-width: 100%;
        min-height: auto;
        height: auto;
    }

    .pe-auth-social-buttons {
        grid-template-columns: 1fr;
    }

    .pe-auth-form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .pe-auth-welcome-title {
        font-size: var(--font-size-xl);
    }

    .pe-auth-welcome-content {
        padding: 2rem;
    }
}

/* Feature button styling - matching the hero section CTA */
.feature-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: var(--font-size-l);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.feature-button:hover {
    background: var(--color-primary-dark);
}

.feature-button:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}