/**
 * Paytm Authentication Stylesheet (paytm-auth.css)
 * Clean, separated CSS for Paytm Login, Register, and Forgot Password pages.
 */

:root {
    --auth-navy: #002970;
    --auth-cyan: #00baf2;
    --auth-blue-grad-start: #0056b3;
    --auth-blue-grad-end: #002970;
    --auth-bg-light: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-border-dashed: #cbd5e1;
    --auth-text-dark: #191c24;
    --auth-text-muted: #64748b;
    --auth-text-sub: #475569;
    --auth-green: #00b377;
    --auth-red: #b91c1c;
    --auth-radius: 12px;
}

body.auth-body {
    background-color: #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--auth-text-dark);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex !important;
    justify-content: center !important;
}

/* Main App Wrapper */
.auth-container {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
    position: relative;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

.auth-container * {
    box-sizing: border-box;
}

/* Top Navigation Bar */
.auth-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.auth-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--auth-navy);
    background: #f8fafc;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-nav-icon:hover {
    background: #e2e8f0;
    transform: translateX(-2px);
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.auth-paytm-txt {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.auth-paytm-txt .dark {
    color: var(--auth-navy);
}

.auth-paytm-txt .cyan {
    color: var(--auth-cyan);
}

.auth-switch-link {
    color: var(--auth-cyan);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.auth-switch-link:hover {
    background: #f0f9ff;
    text-decoration: underline;
}

/* Content Area */
.auth-content {
    padding: 24px 22px 32px;
    flex: 1;
    width: 100%;
}

.auth-header-section {
    margin-bottom: 22px;
}

.auth-pill-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0056b3;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--auth-navy);
    letter-spacing: -0.4px;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--auth-text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Alert Boxes */
.auth-alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--auth-radius);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
}

.auth-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: var(--auth-red);
}

.auth-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
}

/* Form Styles */
.auth-form-group {
    margin-bottom: 18px;
    width: 100%;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--auth-text-sub);
    margin-bottom: 6px;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-label-action {
    font-size: 12px;
    font-weight: 700;
    color: var(--auth-cyan);
    text-decoration: none;
    transition: opacity 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.auth-label-action:hover {
    text-decoration: underline;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--auth-bg-light);
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.auth-input-wrapper:focus-within {
    border-color: var(--auth-cyan);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 186, 242, 0.15);
}

.auth-input-icon {
    padding: 0 14px;
    color: #8395a7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-prefix {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--auth-navy);
    padding-right: 8px;
    border-right: 1px solid #cbd5e1;
    margin-right: 8px;
    flex-shrink: 0;
}

.auth-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 14px 14px 14px 0;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--auth-text-dark);
}

.auth-toggle-pwd {
    background: none;
    border: none;
    color: #8395a7;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.auth-toggle-pwd:hover {
    color: var(--auth-text-dark);
}

/* Checkbox & Remember Row */
.auth-remember-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 20px 0;
    cursor: pointer;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-navy);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-checkbox-label {
    font-size: 13px;
    color: var(--auth-text-sub);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

/* Primary Action Buttons (Applies to both class names) */
.auth-btn-primary,
.auth-submit-btn {
    width: 100% !important;
    background: linear-gradient(135deg, var(--auth-blue-grad-start) 0%, var(--auth-blue-grad-end) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 15px 20px !important;
    font-family: inherit !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0, 41, 112, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
}

.auth-btn-primary:hover,
.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 41, 112, 0.35) !important;
}

.auth-btn-primary:active,
.auth-submit-btn:active {
    transform: translateY(1px);
}

.auth-btn-primary:disabled,
.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Footer Switch Links */
.auth-footer-prompt,
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13.5px;
    color: var(--auth-text-muted);
}

.auth-footer-prompt a,
.auth-footer-link {
    color: var(--auth-cyan);
    font-weight: 800;
    text-decoration: none;
}

.auth-footer-prompt a:hover,
.auth-footer-link:hover {
    text-decoration: underline;
}

/* 6-Digit OTP Container and Boxes */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 16px 0;
    width: 100%;
}

.otp-box {
    width: 46px !important;
    height: 52px !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--auth-navy) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    max-width: 52px !important;
    min-width: 38px !important;
    padding: 0 !important;
}

.otp-box:focus {
    border-color: var(--auth-cyan) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 186, 242, 0.15) !important;
}

/* Trust / Security Strip (Clean Horizontal Alignment) */
.auth-trust-strip,
.auth-security-strip {
    margin-top: auto;
    padding: 18px 20px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    width: 100%;
    box-sizing: border-box;
}

.auth-trust-items,
.auth-security-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    flex-wrap: wrap;
}

.auth-trust-item,
.auth-security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Quick Demo Accounts Card */
.auth-demo-card {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 20px;
}

.auth-demo-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
}

.auth-demo-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-demo-btn {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #15803d;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-demo-btn:hover {
    background: #dcfce7;
}
