/* ICMR e-PMS — custom styles (sign-in & shared e-PMS UI) */
/* Sign-in page uses only this file — not tailwind.css — so the login design stays unchanged. */

body.epms-sign-in *,
body.epms-sign-in *::before,
body.epms-sign-in *::after { box-sizing: border-box; }

body.epms-sign-in {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f8fafc;
    color: #1e293b;
}

@media (min-width: 1024px) {
    body.epms-sign-in { height: 100%; overflow: hidden; }

    body.epms-sign-in .login-panel {
        align-items: center;
        justify-content: center;
        padding: clamp(2rem, 5vh, 3.5rem) 2rem;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.epms-sign-in .login-card-wrap {
        margin: auto 0;
        flex-shrink: 0;
    }
}

/* Laptop / shorter desktop — keep clear space top & bottom */
@media (min-width: 1024px) and (max-height: 900px) {
    body.epms-sign-in .login-panel {
        align-items: flex-start;
        justify-content: center;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}

/* Sign-up page: allow scrolling (form is taller than login) */
body.epms-sign-up {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f8fafc;
    color: #1e293b;
}

body.epms-sign-up *,
body.epms-sign-up *::before,
body.epms-sign-up *::after { box-sizing: border-box; }

@media (min-width: 1024px) {
    body.epms-sign-up { height: 100%; overflow: hidden; }
    body.epms-sign-up .sidebar { overflow-y: hidden; }
    body.epms-sign-up .login-panel {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }
}

/* Sign-up page: slightly wider card on big screens */
@media (min-width: 1024px) {
    body.epms-sign-up .login-card-wrap { max-width: 520px; }
}

@media (min-width: 1400px) {
    body.epms-sign-up .login-card-wrap { max-width: 560px; }
}

@media (min-width: 1024px) {
    body.epms-sign-up .login-card { margin-bottom: 1.5rem; }
}

body.epms-sign-in .page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.epms-sign-up .page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    body.epms-sign-in .page-wrap {
        height: 100vh;
        flex-direction: row;
        overflow: hidden;
    }
}

@media (min-width: 1024px) {
    body.epms-sign-up .page-wrap {
        height: 100vh;
        flex-direction: row;
        overflow: hidden;
    }
}

/* ---- Left sidebar ---- */
.sidebar {
    display: none;
    position: relative;
    color: #fff;
    overflow-y: auto;
    flex-shrink: 0;
    background-color: #1e3a8a;
    background-image:
        radial-gradient(at 20% 80%, rgba(59, 130, 246, 0.35) 0px, transparent 50%),
        radial-gradient(at 80% 20%, rgba(30, 64, 175, 0.4) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(29, 78, 216, 0.2) 0px, transparent 60%);
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        width: 50%;
        height: 100%;
    }
}

.sidebar-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sidebar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 2.5rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 1.5rem;
}

.sidebar-label {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
}

.epms-title {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(2.75rem, 3.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 0;
}

.epms-title .gold { color: #fbbf24; }

.sidebar-subtitle {
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: #dbeafe;
    line-height: 1.6;
    max-width: 28rem;
    margin: 1rem 0 0;
}

.sidebar-subtitle strong { color: #fff; font-weight: 600; }

.gold-line {
    width: 5rem;
    height: 4px;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    border-radius: 999px;
    margin-top: 1rem;
}

.sidebar-desc {
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    color: #bfdbfe;
    line-height: 1.6;
    max-width: 28rem;
    margin: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 28rem;
}

.glass-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fbbf24;
    font-size: 0.875rem;
}

.feature-title {
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 600;
    margin: 0;
}

.feature-desc {
    font-size: 0.75rem;
    color: #bfdbfe;
    margin: 0.125rem 0 0;
}

/* ---- Extra large screens (reduce empty space on left) ---- */
@media (min-width: 1400px) {
    .sidebar-inner { padding: 3.25rem; }

    .sidebar-label { font-size: 0.8125rem; }

    .epms-title {
        font-size: clamp(3.25rem, 3.2vw, 5rem);
        margin-top: 1rem;
    }

    .sidebar-subtitle,
    .sidebar-desc,
    .feature-list {
        max-width: 40rem;
    }

    .sidebar-content { gap: 1.75rem; }

    .glass-card {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .feature-desc { font-size: 0.8125rem; }
}

@media (min-width: 1600px) {
    .sidebar-inner { padding: 3.75rem; }

    .sidebar-subtitle,
    .sidebar-desc,
    .feature-list {
        max-width: 46rem;
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1600px) and (min-height: 900px) {
    .sidebar-content {
        justify-content: flex-start;
        padding-top: 2.25rem;
        gap: 2rem;
    }

    .sidebar-footer { margin-top: 2.5rem; }
}

.sidebar-footer {
    font-size: 0.75rem;
    color: #93c5fd;
    margin: 2rem 0 0;
    flex-shrink: 0;
}

/* ---- Right login panel ---- */
.login-panel {
    flex: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #f8fafc;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f172a' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-card-wrap,
.login-card {
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .login-panel { padding: 2rem; }
}

@media (min-width: 1024px) {
    .login-panel {
        min-height: 0;
        height: 100%;
    }
}

.login-card-wrap {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
    padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    .login-card { padding: 1.75rem 1.75rem; }
}

.login-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-logo img {
    width: min(220px, 72vw);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.login-title {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.375rem 0 0;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.alert p {
    margin: 0;
}

.alert > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-success i {
    color: #10b981;
    margin-top: 0;
    flex-shrink: 0;
    line-height: 1;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-error i {
    color: #ef4444;
    margin-top: 0;
    flex-shrink: 0;
    line-height: 1;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { margin: 0; }

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.form-label .muted {
    color: #94a3b8;
    font-weight: 400;
    text-transform: none;
}

.field-hint {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.35;
}

.password-fields .field-hint {
    margin: 0.375rem 0 0;
}

.password-submit-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0.25rem 0 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.password-submit-hint i {
    color: #2563eb;
    margin-top: 2px;
    flex-shrink: 0;
}

.password-fields .form-row-2 {
    margin: 0;
}

.password-fields .form-group {
    margin: 0;
}

.req {
    color: #dc2626;
    font-weight: 700;
    margin-left: 0.125rem;
}

.form-required-note {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    body.epms-sign-up .form-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.epms-sign-up .form-row-2 .form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.epms-sign-up .form-row-2 .form-label {
    min-height: 2.5rem;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.375rem;
}

@media (max-width: 767px) {
    body.epms-sign-up .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.terms-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.terms-row input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.terms-text {
    flex: 1;
    min-width: 0;
}

.terms-text label {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.45;
    cursor: pointer;
    display: block;
}

/* Mobile brand strip (sidebar hidden below lg) */
.mobile-brand {
    display: block;
    text-align: center;
    padding: 1rem 1rem 0;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
}

.mobile-brand-title {
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.375rem;
    font-weight: 700;
}

.mobile-brand-title .gold { color: #fbbf24; }

.mobile-brand-sub {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #bfdbfe;
}

@media (min-width: 1024px) {
    .mobile-brand { display: none; }
}

/* ---- Responsive: phones & tablets ---- */
@media (max-width: 1023px) {
    body.epms-sign-in,
    body.epms-sign-up {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100vh;
        height: auto;
    }

    body.epms-sign-in .page-wrap,
    body.epms-sign-up .page-wrap {
        min-height: 100vh;
        height: auto;
    }

    body.epms-sign-in .login-panel,
    body.epms-sign-up .login-panel {
        min-height: auto;
        align-items: flex-start;
        padding: 1.5rem 1rem 2.5rem;
        width: 100%;
    }

    body.epms-sign-in .login-panel {
        padding-top: 1.75rem;
        padding-bottom: 2.75rem;
    }

    body.epms-sign-up .login-panel {
        padding-bottom: 2.5rem;
    }

    body.epms-sign-in .login-card {
        margin-bottom: 0.5rem;
    }

    .login-secure {
        margin-bottom: 0.5rem;
    }

    .login-card-wrap {
        max-width: 100%;
    }

    .login-card {
        padding: 1.25rem 1rem;
        border-radius: 0.875rem;
    }

    .login-form {
        gap: 0.875rem;
    }

    .login-links {
        font-size: 0.8125rem;
        gap: 0.35rem 0.5rem;
    }

    .captcha-row {
        width: 100%;
    }

    .captcha-row img {
        max-width: 100%;
        height: auto;
        max-height: 48px;
    }

    .epms-modal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .epms-modal-dialog {
        max-height: 92vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@media (max-width: 380px) {
    .login-title { font-size: 1.0625rem; }

    .login-subtitle { font-size: 0.8125rem; }

    .form-logo img { width: min(200px, 68vw); }

    .input-field {
        padding-left: 2rem;
        font-size: 1rem;
    }

    .input-icon {
        padding-left: 0.625rem;
        font-size: 0.8125rem;
    }

    .btn-login {
        font-size: 0.8125rem;
        padding: 0.7rem 0.875rem;
    }
}

@media (min-width: 481px) and (max-width: 1023px) {
    .login-card-wrap {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .mobile-brand {
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    @media (max-width: 1023px) {
        body.epms-sign-in .login-panel,
        body.epms-sign-up .login-panel {
            padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }
    }
}

.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.input-field {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
    .input-field { font-size: 0.875rem; }
}

.input-field::placeholder { color: #94a3b8; }

.input-field:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-field.is-error {
    border-color: #f87171;
    background: #fef2f2;
}

.input-wrap.has-toggle .input-field {
    padding-right: 2.75rem;
}

/* Hide browser native password reveal so only our custom eye icon shows */
.input-wrap.has-toggle input[type="password"]::-ms-reveal,
.input-wrap.has-toggle input[type="password"]::-ms-clear,
.input-wrap.has-toggle input[type="text"]::-ms-reveal,
.input-wrap.has-toggle input[type="text"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.input-wrap.has-toggle input::-webkit-credentials-auto-fill-button,
.input-wrap.has-toggle input::-webkit-strong-password-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.input-action {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    z-index: 2;
}

.btn-toggle-pwd {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-toggle-pwd:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.field-error {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #dc2626;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.field-error i {
    color: #dc2626;
    margin-top: 0;
    flex-shrink: 0;
    line-height: 1;
}

.field-error:empty {
    display: none;
    margin: 0;
}

.terms-row.is-error {
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid #f87171;
    background: #fef2f2;
}

.captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.captcha-row img {
    border-radius: 0.5rem;
    max-height: 42px;
    width: auto;
}

.btn-refresh {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-refresh:hover { background: #d1fae5; }

.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
    .btn-login { padding: 0.625rem 1rem; }
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #64748b;
}

.login-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover { color: #2563eb; }

body.epms-sign-in .login-links a.link-strong { font-weight: 500; }

.login-links .sep { color: #cbd5e1; }

.login-secure {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 1rem 0 0;
}

.terms-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

body.epms-sign-up .login-links a.link-strong { font-weight: 500; }

/* Terms modal */
.epms-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
}

.epms-modal:target { display: flex; }

.epms-modal-dialog {
    width: 100%;
    max-width: 42rem;
    max-height: 85vh;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.epms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.epms-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1e3a8a;
}

.epms-modal-close {
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
}

.epms-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.epms-modal-body p { margin: 0 0 1rem; }

.epms-modal-body ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.epms-modal-body li { margin-bottom: 0.35rem; }

.epms-modal-footer {
    padding: 0.875rem 1.25rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.epms-modal-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

/* OTP verification page */
.otp-resend-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.otp-resend-text {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.otp-timer-text {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.otp-timer-text #timenumber {
    font-weight: 700;
    color: #1e3a8a;
}

.otp-resend-block .link-strong {
    display: inline-block;
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
}

.otp-resend-block .link-strong:hover {
    text-decoration: underline;
}

.otp-expiry {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.otp-resend-block form {
    margin: 0;
}

.otp-resend-block .btn-resend {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
}

.otp-resend-block .btn-resend:hover {
    text-decoration: underline;
}
