:root {
    --primary-gradient: linear-gradient(135deg, #FF7F50, #FF69B4);
    --black: #000000;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-color: #2d3436;
    --light-gray: #dfe6e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.auth-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
}

.auth-right {
    flex: 1;
    background: linear-gradient(135deg, #FF7F50, #FF69B4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-illustration {
    position: relative;
    width: 100%;
    max-width: 90%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
    animation: floatImage 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float {
    position: absolute;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.float-1 {
    top: 10%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.float-2 {
    top: 20%;
    right: 15%;
    animation: float 5s ease-in-out infinite 1s;
}

.float-3 {
    bottom: 20%;
    left: 15%;
    animation: float 4.5s ease-in-out infinite 0.5s;
}

.float-4 {
    bottom: 15%;
    right: 10%;
    animation: float 5.5s ease-in-out infinite 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Add a subtle glow effect */
.auth-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-form {
    width: 100%;
    max-width: 480px;
    padding: 1.75rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.logo img {
    height: 30px;
    margin-bottom: 1.25rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.675rem 1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #f8fafc;
}

input:focus {
    outline: none;
    border-color: var(--black);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.toggle-password:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

.toggle-password .eye-icon {
    display: block;
    transition: all 0.2s;
}

.toggle-password .eye-icon.hide {
    display: none;
}

.toggle-password.showing .eye-icon.show {
    display: none;
}

.toggle-password.showing .eye-icon.hide {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    position: relative;
}

.remember-me input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox design */
.remember-me span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--white);
}

/* Checkbox checked state */
.remember-me input[type="checkbox"]:checked + span::before {
    background-color: var(--black);
    border-color: var(--black);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hover state */
.remember-me:hover span::before {
    border-color: var(--black);
}

/* Focus state */
.remember-me input[type="checkbox"]:focus + span::before {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.forgot-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.forgot-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--light-gray);
    border-radius: 4px;
    background: #f8fafc;
}

input[type="checkbox"]:checked {
    background-color: var(--black);
    border-color: var(--black);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-content {
    text-align: center;
    max-width: 480px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.feature-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.signup-prompt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.signup-prompt a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .feature-illustration {
        max-width: 400px;
    }
}

@media (min-width: 1440px) {
    .auth-form {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-right {
        display: none;
    }
    
    .auth-form {
        padding: 2rem;
        max-width: 100%;
    }
    
    .auth-left {
        padding: 1rem;
    }
}

/* Additional styles for register page */
.captcha-group {
    margin-bottom: 1.5rem;
}

.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.captcha-image {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}

.captcha-image img {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.refresh-captcha {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-captcha:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

.terms-group {
    margin-bottom: 1.25rem;
}

.terms-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Make form scrollable if content is too long */
.auth-form::-webkit-scrollbar {
    width: 6px;
}

.auth-form::-webkit-scrollbar-track {
    background: transparent;
}

.auth-form::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Password row styles */
.password-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.password-row .form-group {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .password-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Additional styles for forgot password page */
.auth-form.forgot-password {
    max-width: 440px;
}

/* Success message styles (for after sending reset link) */
.success-message {
    display: none;
    background: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile input group styles */
.mobile-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-input-group input {
    flex: 1;
}

.btn-otp {
    padding: 0.675rem 1.25rem;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-otp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-otp {
        width: 100%;
    }
}

/* OTP Popup styles */
.otp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.otp-popup.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

.popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.otp-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-digit {
    width: 40px !important;
    height: 40px;
    text-align: center;
    font-size: 1.25rem !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-resend {
    background: none;
    border: none;
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-resend:hover {
    text-decoration: underline;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .otp-digit {
        width: 35px !important;
        height: 35px;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
}

/* Updated country select styles */
.country-select {
    position: relative;
    min-width: 120px;
}

.custom-select {
    position: relative;
    cursor: pointer;
}

.selected-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.675rem 0.75rem;
    border: 1.5px solid var(--light-gray);
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.95rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    max-height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    z-index: 1000;
    overflow: hidden;
}

.custom-select.active .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

.search-box {
    padding: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.search-box input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9rem;
}

.options-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.option:hover {
    background: #f8fafc;
}

.option .flag {
    font-size: 1.25rem;
}

.option .country {
    flex: 1;
    font-size: 0.9rem;
}

.option .code {
    color: #64748b;
    font-size: 0.9rem;
}

/* Scrollbar styling for options list */
.options-list::-webkit-scrollbar {
    width: 6px;
}

.options-list::-webkit-scrollbar-track {
    background: transparent;
}

.options-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .dropdown-menu {
        width: 100%;
    }
}

/* Add dropdown arrow to selected option */
.selected-option::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748b;
    transition: transform 0.2s;
}

.custom-select.active .selected-option::after {
    transform: translateY(-50%) rotate(180deg);
} 