@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #f8fafc;
}

.form-content {
    opacity: 0;
    transform: translateY(16px);
    animation: formContentEnter 0.64s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes formContentEnter {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-content-exit {
    animation: formContentExit 0.48s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.language-transition {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-transition.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes formContentExit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px);
    }
}

.login-form {
    width: 100%;
    max-width: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 27px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.logo-link:hover {
    opacity: 0.8;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.login-image {
    background-image: url('/hero-image.jpg');
    background-size: cover;
    width: 50%;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: center;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1;
    background-color: #f8fafc;
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.login-form-container {
    width: 50%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 80px;
    background-color: #ffffff;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    margin-left: 50%;
}

.logo {
    width: 120px;
    height: auto;
}

.partners-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ea1d2c;
    letter-spacing: 0.3px;
    margin-top: -2px;
    margin-left: 12.5px;
}


.partners-icon {
    width: 24px;
    height: 24px;
    fill: #ea1d2c;
}

.form-title {
    color: rgb(62, 62, 62);
    margin-bottom: 32px;
    display: block;
    font-size: 28px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 14px;
    line-height: 20px;
    color: rgb(62, 62, 62);
    margin-top: -1px;
    margin-bottom: 0px;
    font-family: "Poppins", sans-serif;
}

.sms-subtitle {
    margin-top: 4px;
}

.form-divider {
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    margin: 42px 0;
}

.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: rgb(62, 62, 62);
    margin-bottom: 8px;
    display: block;
}

.form-input {
    height: 48px;
    width: 100%;
    border: 2px solid #e2e8f0;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-input.error {
    border-color: #ea1d2c;
}

.form-input:focus.success {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.phone-input.error,
.country-select.error {
    border-color: #ea1d2c;
}

.phone-input:focus.success,
.country-select:focus.success {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.error-message {
    color: #ea1d2c;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 0;
    line-height: 1.4;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
}

.forgot-password {
    text-align: left;
    margin-bottom: 24px;
}

.forgot-link {
    font-family: "Poppins", sans-serif;
    color: #ea1d2c;
    font-weight: 500;
    text-decoration: underline;
    display: inline;
    font-size: 14px;
}

.forgot-link:hover {
    color: rgba(234,29,44,.8);
}

.recaptcha-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.8);
    }
}

.submit-btn {
    position: relative;
    cursor: not-allowed;
    transition: background-color 250ms ease-in-out, box-shadow 100ms ease-in-out;
    border: none;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 20px;
    color: #ccc;
    background-color: #f5b7b7;
    font-family: "Inter", sans-serif;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 100%;
    display: block;
    opacity: 0.6;
    pointer-events: none;
    height: 44px;
    min-height: 44px;
}

.submit-btn.active {
    cursor: pointer;
    color: rgb(255, 255, 255);
    background-color: rgb(234, 29, 44);
    opacity: 1;
    pointer-events: auto;
}

.submit-btn.active:hover:not(:active):not(:disabled) {
    background-color: rgb(239, 87, 83);
}

.submit-btn.active:active {
    background-color: rgb(195, 24, 53);
}

.submit-btn.active:focus {
    outline: none;
    box-shadow: rgb(77 144 254) 0px 0px 0px 3px;
}

.cancel-btn {
    position: relative;
    cursor: pointer;
    transition: background-color 250ms ease-in-out, box-shadow 100ms ease-in-out;
    font-weight: normal;
    border-radius: 50px;
    border: 1px solid rgb(234, 29, 44);
    padding: 10px 20px;
    font-size: 16px;
    line-height: 20px;
    background-color: rgb(255, 255, 255);
    color: rgb(234, 29, 44);
    font-family: "Inter", sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
    height: 44px;
    min-height: 44px;
}

.cancel-btn:hover:not(:active):not(:disabled) {
    background-color: rgb(252, 235, 234);
}

.cancel-btn:active {
    color: rgb(255, 255, 255);
    background-color: rgb(239, 87, 83);
}

.cancel-btn:focus {
    outline: none;
    box-shadow: rgb(77 144 254) 0px 0px 0px 3px;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.signup-link {
    font-size: 14px;
    line-height: 20px;
    color: rgb(62, 62, 62);
    margin-top: 20px;
    margin-bottom: 0px;
    font-family: "Inter", sans-serif;
}

.signup-link-text {
    font-family: "Inter", sans-serif;
    color: #ea1d2c;
    font-weight: 400;
    text-decoration: none;
}

.signup-link-text:hover {
    color: rgba(234,29,44,.8);
}

.success-message-container {
    margin-top: 20px;
    padding: 16px;
    background-color: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
}

.success-text {
    color: #065f46;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    width: calc(100% - 40px);
    z-index: 1000;
    transform: translateX(100%) translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    transform: translateX(0) translateY(0);
    opacity: 1;
}

.toast-content {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.toast-message {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.phone-input-container {
    display: flex;
    gap: 8px;
}

.country-select {
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    min-width: 100px;
    flex-shrink: 0;
}

.country-select:focus {
    outline: none;
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.phone-input {
    height: 48px;
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.phone-input:focus {
    outline: none;
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.signup-step,
.sms-step {
    transition: all 0.4s ease-in-out;
}

.signup-step.hidden,
.sms-step.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(-20px);
}

.sms-step {
    opacity: 0;
    transform: translateY(20px);
}

.sms-step.active {
    opacity: 1;
    transform: translateY(0);
}

.sms-info {
    margin-bottom: 2px;
    margin-top: 2px;
    text-align: center;
}

.sms-label {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(62, 62, 62);
    margin-bottom: 2px;
    text-align: center;
}

.phone-display {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ea1d2c;
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
}

.sms-validation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 0;
}

.resend-container {
    text-align: center;
    margin-bottom: 0;
    margin-top: 5px;
}

.back-btn {
    position: relative;
    cursor: pointer;
    transition: background-color 250ms ease-in-out, box-shadow 100ms ease-in-out;
    font-weight: normal;
    border-radius: 50px;
    border: 1px solid rgb(234, 29, 44);
    padding: 10px 20px;
    font-size: 16px;
    line-height: 20px;
    background-color: rgb(255, 255, 255);
    color: rgb(234, 29, 44);
    font-family: "Inter", sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
    height: 44px;
    min-height: 44px;
    width: 100%;
}

.back-btn:hover:not(:active):not(:disabled) {
    background-color: rgb(252, 235, 234);
}

.back-btn:active {
    color: rgb(255, 255, 255);
    background-color: rgb(239, 87, 83);
}

.back-btn:focus {
    outline: none;
    box-shadow: rgb(77 144 254) 0px 0px 0px 3px;
}

@media (max-width: 480px) {
    .sms-validation-content {
        gap: 12px;
    }
    
    .back-btn {
        width: 100%;
        margin-top: 12px;
    }
    
    .code-input-container {
        gap: 8px;
    }
    
    .code-digit {
        width: 71px;
        height: 71px;
        font-size: 28px;
    }
}
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ea1d2c;
    margin: 0;
    text-align: center;
}

.code-input-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 31px;
}

.code-digit {
    width: 71px;
    height: 71px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.code-digit:focus {
    outline: none;
    border-color: #ea1d2c;
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

.code-digit.filled {
    border-color: #48bb78;
    background-color: #f0fff4;
}

.resend-container {
    text-align: center;
    margin-bottom: 2px;
    margin-top: 2px;
}

.resend-btn {
    background: none;
    border: none;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #9ca3af;
    cursor: not-allowed;
    transition: color 0.2s ease-in-out;
    padding: 8px 0;
}

.resend-btn.active {
    cursor: pointer;
}

.resend-link {
    color: #ea1d2c;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.resend-btn.active:hover .resend-link {
    color: rgba(234, 29, 44, 0.8);
}

.resend-timer {
    display: inline;
    font-weight: 500;
    color: #6b7280;
}

.resend-text {
    display: none;
}

.resend-text .resend-link {
    color: #ea1d2c;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.resend-text:hover .resend-link {
    color: rgba(234, 29, 44, 0.8);
}

@media (max-width: 480px) {
    .toast-notification {
        top: 16px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: none;
    }
    
    .toast-content {
        padding: 14px 16px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}

/* reCAPTCHA v2 Invisible Badge Styling */
.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

/* Ensure badge doesn't interfere with page content */
body {
    padding-bottom: 70px;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 60px;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .country-select {
        min-width: 100%;
    }
    
    .code-input-container {
        gap: 10px;
    }
    
    .code-digit {
        width: 59px;
        height: 59px;
        font-size: 23px;
    }
}

@media (max-width: 1023px) {
    .login-form-container {
        width: 100%;
    }
    
    .login-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .login-form-container {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 16px;
    }
    
    .form-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .logo {
        width: 80px;
    }
}