/* ============================================
   NEXRO PAY - Auth Pages Stylesheet
   Design inspired by PayCure.online
   Colors: Dark Green (#07352D) + Lime (#d0e85a)
   ============================================ */

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

body.auth-page {
    font-family: 'Inter', sans-serif;
    background: #fff;
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
}

.zg-split { display: flex; width: 100%; min-height: 100vh; }

.zg-left {
    width: 45%;
    background: #07352D;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; flex-shrink: 0;
}

.zg-blob1 {
    position: absolute; width: 220px; height: 220px;
    background: rgba(208, 232, 90, .08); border-radius: 50%;
    top: -60px; right: -60px;
    animation: blobFloat 12s ease-in-out infinite;
}
.zg-blob2 {
    position: absolute; width: 160px; height: 160px;
    background: rgba(208, 232, 90, .06); border-radius: 50%;
    bottom: 40px; left: -40px;
    animation: blobFloat 15s ease-in-out infinite reverse;
}
.zg-blob3 {
    position: absolute; width: 100px; height: 100px;
    background: rgba(208, 232, 90, .05); border-radius: 50%;
    top: 40%; left: 10%;
    animation: blobFloat 10s ease-in-out infinite 2s;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(15px,-20px) scale(1.08); }
    66% { transform: translate(-10px,12px) scale(0.95); }
}

.zg-left-illustration {
    width: 85%; max-width: 420px; object-fit: contain;
    position: relative; z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.zg-left-illustration:hover { transform: translateY(-8px); }

.zg-feature-tags {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 3;
}
.zg-feature-tag {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 500;
    backdrop-filter: blur(8px);
}
.zg-feature-tag i { color: #d0e85a; font-size: 12px; }

.zg-right {
    flex: 1; background: #fff; display: flex; align-items: center;
    justify-content: center; overflow-y: auto; padding: 32px 20px;
}

.zg-form-container {
    width: 100%; max-width: 500px; padding: 36px 36px 28px;
    border-radius: 20px; background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,.05); position: relative;
    animation: formSlideIn 0.6s cubic-bezier(0.16,1,0.3,1);
}
@keyframes formSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.zg-close {
    position: absolute; top: 16px; right: 16px; width: 30px; height: 30px;
    border-radius: 50%; background: #f1f3f6; color: #1a1d23;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: bold; border: none; cursor: pointer;
    text-decoration: none; transition: all 0.2s ease;
}
.zg-close:hover { background: #e2e5ea; transform: rotate(90deg); }

.zg-logo { text-align: center; margin-bottom: 4px; }
.zg-logo h2 { font-weight: 800; color: #1a1d23; font-size: 22px; margin: 0; }
.zg-logo img { height: 40px; object-fit: contain; }

.zg-title { text-align: center; font-size: 21px; font-weight: 700; color: #1a1d23; margin: 14px 0 4px; }
.zg-subtitle { text-align: center; color: #6b7280; font-size: 13px; margin-bottom: 22px; line-height: 1.5; }

.zg-form-group { margin-bottom: 12px; position: relative; }
.zg-form-control {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #e2e5ea; border-radius: 10px;
    font-size: 14px; color: #1a1d23; outline: none;
    transition: all 0.2s ease; font-family: 'Inter', sans-serif;
    background: #fff; box-sizing: border-box;
}
.zg-form-control:hover { border-color: #cbd5e1; }
.zg-form-control:focus { border-color: #07352D; box-shadow: 0 0 0 3px rgba(7,53,45,.08); }
.zg-form-control::placeholder { color: #9ca3af; font-size: 13px; }

.zg-input-icon-wrap { position: relative; }
.zg-input-icon-wrap .zg-form-control { padding-left: 42px; }
.zg-input-icon-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 16px; transition: color 0.2s ease; z-index: 2;
}
.zg-input-icon-wrap:focus-within .input-icon { color: #07352D; }

.zg-pwd-wrap .zg-form-control { padding-right: 42px; }
.zg-pwd-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #9ca3af;
    padding: 4px; transition: color 0.2s ease;
}
.zg-pwd-toggle:hover { color: #07352D; }

.zg-form-options {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.zg-remember {
    display: flex; align-items: center; gap: 6px;
    color: #6b7280; cursor: pointer; font-size: 13px;
}
.zg-remember input[type="checkbox"] { accent-color: #07352D; width: 15px; height: 15px; cursor: pointer; }
.zg-forgot-link { color: #07352D; font-weight: 600; font-size: 13px; text-decoration: none; }
.zg-forgot-link:hover { color: #0a4a3f; text-decoration: underline; }

.zg-btn-primary {
    width: 100%; padding: 13px; background: #d0e85a; color: #1a1d23;
    border: none; border-radius: 30px; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all 0.2s ease; text-transform: uppercase;
    letter-spacing: 0.5px; margin-top: 6px; font-family: 'Inter', sans-serif;
    position: relative; overflow: hidden;
}
.zg-btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.zg-btn-primary:hover { background: #c5dc52; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(208,232,90,0.4); }
.zg-btn-primary:hover::before { left: 100%; }
.zg-btn-primary:active { transform: scale(.98); }
.zg-btn-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.zg-divider { display: flex; align-items: center; text-align: center; margin: 16px 0; color: #9ca3af; font-size: 13px; }
.zg-divider::before, .zg-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e2e5ea; }
.zg-divider:not(:empty)::before { margin-right: .5em; }
.zg-divider:not(:empty)::after { margin-left: .5em; }

.social-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.social-btn {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #f8f9fa; border: 1.5px solid #e2e5ea;
    color: #6b7280; font-size: 18px; cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.social-btn:hover {
    background: #f1f3f6; border-color: #cbd5e1;
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.social-btn.facebook:hover { color: #1877f2; border-color: rgba(24,119,242,0.3); }
.social-btn.twitter:hover { color: #1da1f2; border-color: rgba(29,161,242,0.3); }
.social-btn.github:hover { color: #333; border-color: rgba(51,51,51,0.3); }
.social-btn.google:hover { color: #ea4335; border-color: rgba(234,67,53,0.3); }

.zg-auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #6b7280; }
.zg-auth-footer a { color: #07352D; font-weight: 600; text-decoration: none; }
.zg-auth-footer a:hover { color: #0a4a3f; text-decoration: underline; }

.zg-otp-grid { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.zg-otp-input {
    width: 48px; height: 52px; text-align: center; font-size: 20px; font-weight: 700;
    border: 1.5px solid #e2e5ea; border-radius: 10px; outline: none;
    transition: all 0.2s ease; background: #f9fafb; font-family: 'Inter', sans-serif; color: #1a1d23;
}
.zg-otp-input:focus { border-color: #07352D; box-shadow: 0 0 0 3px rgba(7,53,45,.08); background: #fff; }

.zg-back-btn { display: inline-flex; align-items: center; gap: 6px; color: #6b7280; font-size: 13px; cursor: pointer; border: none; background: none; font-family: 'Inter', sans-serif; }
.zg-back-btn:hover { color: #07352D; }

.zg-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(26,29,35,0.2); border-left-color: #1a1d23;
    border-radius: 50%; animation: spin 0.6s linear infinite; margin-left: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.zg-alert {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
    font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.zg-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.zg-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.zg-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.d-none { display: none !important; }

@media (max-width: 768px) {
    .zg-split { flex-direction: column; }
    .zg-left { display: none; }
    .zg-right { width: 100%; padding: 20px 16px; align-items: flex-start; }
    .zg-form-container { box-shadow: none; padding: 24px 16px; border-radius: 0; }
    .zg-otp-input { width: 42px; height: 46px; font-size: 18px; }
}
@media (max-width: 400px) {
    .zg-otp-grid { gap: 6px; }
    .zg-otp-input { width: 38px; height: 42px; font-size: 16px; }
}
