/* Auth pages - matches BondX Figma design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    padding: 24px;
    gap: 24px;
}

/* Left panel - form */
.auth-left {
    background: #ffffff;
    border-radius: 14px;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.auth-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-logo-icon {
    background: #34d399;
    border-radius: 9px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.auth-logo-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    letter-spacing: -0.8px;
    line-height: 28px;
    margin: 0;
}

.auth-logo-text p {
    font-size: 16px;
    font-weight: 400;
    color: #737373;
    margin: 0;
    line-height: 1;
}

/* Form container */
.auth-form-container {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-title {
    font-size: 30px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 36px;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    line-height: 1;
}

.auth-field input {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    height: 36px;
    padding: 4px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #0a0a0a;
    width: 100%;
    outline: none;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
    transition: border-color 0.15s;
}

.auth-field input::placeholder {
    color: #737373;
}

.auth-field input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-field input.input-error {
    border-color: #ef4444;
}

/* OTP inputs */
.otp-wrapper {
    display: flex;
    gap: 8px;
}

.otp-input {
    width: 36px !important;
    height: 36px;
    text-align: center;
    padding: 4px 0 !important;
    font-size: 16px;
    font-weight: 500;
}

/* Checkbox row */
.auth-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}

/* Buttons */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-primary {
    background: #10b981;
    color: #f8fafc;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
    white-space: nowrap;
    transition: background 0.15s;
    min-width: 75px;
}

.btn-primary:hover {
    background: #059669;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 400;
    color: #737373;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.btn-link:hover {
    color: #0a0a0a;
}

.btn-back {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #10b981;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-back:hover {
    color: #059669;
}

/* Alert / Error */
.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-alert-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #166534;
}

/* Body text */
.auth-body-text {
    font-size: 14px;
    font-weight: 400;
    color: #737373;
    line-height: 20px;
    margin: 0;
}

/* Right panel - decorative */
.auth-right {
    flex: 1;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.auth-right-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-right-overlay {
    position: absolute;
    inset: 0;
    background: #10b981;
    mix-blend-mode: multiply;
}

/* Lockout icon */
.auth-lockout-icon {
    width: 32px;
    height: 32px;
    background: #fef2f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.auth-lockout-icon svg {
    width: 18px;
    height: 18px;
    color: #dc2626;
}

/* Loading spinner */
.auth-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Spacing helpers */
.auth-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 0;
    }
    .auth-right {
        display: none;
    }
    .auth-left {
        flex: 1;
        border-radius: 0;
    }
}
