/* Auth Pages (Login & Register) Style - Premium Light White & Teal Theme */
:root {
    --bg-color: #0d8a9e;
    --btn-color: #0d8a9e;
    --btn-color-hover: #0a6f80;
    --font-main: "Poppins", sans-serif;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-white-light: #f5fafd;
}

body {
    background: linear-gradient(135deg, #f5fafd 0%, #e6f7fa 100%) !important;
    font-family: var(--font-main);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Remove dark overlay */
body::before {
    display: none !important;
}

body::after {
    display: none !important;
}

.auth-container {
    max-width: 400px !important;
    padding: 24px 16px !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Language selector top-right */
.lang-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid rgba(13, 138, 158, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(13, 138, 158, 0.06);
    transition: all 0.2s ease;
}
.lang-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(13, 138, 158, 0.1);
}
.lang-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Bottom sheets */
.bs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 300;
}
.bs-overlay.open {
    display: block;
}
.bs-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    z-index: 400;
    overflow: hidden;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
}
.bs-sheet.open {
    display: block;
}
.bs-option {
    padding: 16px 20px;
    font-size: 15px;
    color: #333333;
    text-align: center;
    cursor: pointer;
    border-bottom: .5px solid #eeeeee;
    font-weight: 500;
}
.bs-option:hover {
    background: #f7f9fa;
}
.bs-option.active {
    font-weight: 700;
    color: var(--btn-color);
    background: #f0fafa;
}
.bs-close {
    padding: 14px 20px;
    font-size: 15px;
    color: #666666;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

/* Logo wrap & Dynamic style */
.logo-wrap {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}
.logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(13, 138, 158, 0.12);
    border: 3px solid #ffffff;
    padding: 4px;
}
.logo-wrap .logo-text {
    font-size: 20px;
    color: var(--btn-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Form container - Clean White Card */
.form-wrap {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 24px;
    border: 1px solid rgba(13, 138, 158, 0.15);
    box-shadow: 0 10px 30px rgba(13, 138, 158, 0.08);
    margin-bottom: 24px;
}

/* Field Boxes */
.field-box {
    background: #f7fafb;
    border-radius: 25px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 20px;
    width: 100%;
    border: 1.5px solid rgba(13, 138, 158, 0.12);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.field-box:focus-within {
    background: #ffffff;
    border-color: var(--btn-color);
    box-shadow: 0 0 12px rgba(13, 138, 158, 0.15);
}
.field-icon {
    color: var(--btn-color);
    display: flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}
.field-icon svg {
    width: 17px;
    height: 17px;
}
.ph-plus {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 1px;
}
.ph-code {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}
.vline {
    width: 1.5px;
    height: 18px;
    background: rgba(13, 138, 158, 0.2);
    margin: 0 10px;
    flex-shrink: 0;
}

.field-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent !important;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    font-family: var(--font-main);
    min-width: 0;
    height: 100%;
}
.field-box input::placeholder {
    color: #9e9e9e;
    font-weight: 400;
}

/* Captcha & OTP Box */
.otp-box {
    background: #f7fafb;
    border-radius: 25px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 0 0 20px;
    width: 100%;
    overflow: hidden;
    border: 1.5px solid rgba(13, 138, 158, 0.12);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.otp-box:focus-within {
    background: #ffffff;
    border-color: var(--btn-color);
    box-shadow: 0 0 12px rgba(13, 138, 158, 0.15);
}
.otp-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent !important;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    font-family: var(--font-main);
    min-width: 0;
    height: 100%;
}
.otp-box input::placeholder {
    color: #9e9e9e;
    font-weight: 400;
}

.cap-code {
    background: #e6f7fa;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #0077b6;
    letter-spacing: 4px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    position: relative;
    min-width: 95px;
    justify-content: center;
    border-left: 1.5px solid rgba(13, 138, 158, 0.15);
    transition: all 0.2s ease;
}
.cap-code:hover {
    background: #d0f0f5;
}
.cap-code::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    height: 1.5px;
    background: rgba(0,0,0,0.15);
    transform: rotate(-5deg);
}

/* Submit main button */
.main-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--btn-color) 0%, var(--btn-color-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(13, 138, 158, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-btn:hover {
    background: linear-gradient(135deg, #0f9cb3 0%, var(--btn-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 138, 158, 0.4);
}
.main-btn:active {
    transform: translateY(1px);
}
.main-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Helper teal links */
.helper-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding: 0 6px;
}
.helper-links a {
    color: var(--btn-color) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}
.helper-links a:hover {
    color: var(--btn-color-hover) !important;
    text-decoration: underline;
}

/* Page footer text */
.page-footer {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* OTP code send design for Register Page */
.otp-send-btn, .send-btn {
    height: 100%;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--btn-color) 0%, var(--btn-color-hover) 100%);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;
    flex-shrink: 0;
}
.send-btn {
    font-family: var(--font-main);
}
.otp-send-btn:hover, .send-btn:hover {
    background: linear-gradient(135deg, #0f9cb3 0%, var(--btn-color) 100%);
}
.otp-send-btn:disabled, .send-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Bottom registration link */
.footer-link {
    text-align: center;
    margin-top: 20px;
}
.footer-link a {
    color: var(--btn-color) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-link a:hover {
    color: var(--btn-color-hover) !important;
    text-decoration: underline;
}

/* Autofill text/background override to prevent browser highlights from showing */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    transition: background-color 5000s ease-in-out 0s;
}
