/* New external file: public/css/auth.css */
/* ==== Reset ==== */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html, body { height:100%; font-family:'Segoe UI', Tahoma, sans-serif; }

/* ==== Layout ==== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;     /* Critical: keeps card aligned */
    justify-content: center;
}

/* Banner + Pagination Column */
.banner-column {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ==== Banner ==== */
.banner {
    width: 100%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 7px;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* ==== Slider ==== */
.slider-wrapper {
    overflow: hidden;
    border-radius: 7px;
    width: 100%;
}
.slider {
    display: flex;
    width: 300%;
    animation: slide 12s infinite;
    transition: none; /* Important */
}

.slider.jumping {
    animation: none !important;
}
.slide {
    min-width: 100%;
    padding: 1rem 0;
}
.slide h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.slide p  { margin: 0; font-size: .95rem; opacity: .9; }

/* Pause on hover */
.banner:hover .slider { animation-play-state: paused; }

/* ==== Pagination (Only Below Banner) ==== */
.slider-pagination-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.slider-pagination {
    display: inline-flex;
    gap: 10px;
    padding: 8px 16px;
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.slider-pagination .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-pagination .dot.active {
    margin-top: 1px;
    width: 15px;
    height: 8px;
    border-radius: 50px; /* capsule shape */
    background: #fff;
    transform: scale(1.5);
    border: 1px solid #fff; /* white border */
    /* Optional shadow for better visibility */
    /* box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); */
}


/* ==== Keyframes ==== */
@keyframes slide {
    0%   { transform: translateX(0%); }
    30%  { transform: translateX(0%); }
    33%  { transform: translateX(-33.333%); }
    63%  { transform: translateX(-33.333%); }
    66%  { transform: translateX(-66.666%); }
    96%  { transform: translateX(-66.666%); }
    100% { transform: translateX(0%); }
}

/* ==== Button ==== */
.btn-learn {
    display: inline-block;
    margin-top: 1rem;
    padding: .6rem 1.4rem;
    background: #fff;
    color: #000;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
    align-self: center;
}
.btn-learn:hover { background: #eee; }

/* ==== Card ==== */
.login-card {
    flex: 1 1 400px;
    max-width: 500px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.login-card h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}
.login-card .subtext {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 30px;
}

/* ==== Form Controls ==== */
.form-control,
textarea.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border .2s, box-shadow .2s;
}
.form-control:focus,
textarea.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 4px rgba(99,102,241,.3);
    outline: none;
}
.form-control::placeholder { color: #9ca3af; }

.input-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}
.input-group-text {
    background: #f3f4f6;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
    border-right: 1px solid #d1d5db;
}
.input-group .form-control { border: none; }

label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 5px;
}

.mb-1 { margin-bottom: 0.5rem; }
.text-danger { color: #ef4444; font-size: 13px; display: block; margin-top: 4px; }

.phone-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 22px;
}
.phone-wrapper span {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    padding: 11px 16px;
    border-right: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    white-space: nowrap;
    min-width: 70px;
}
.phone-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 14px;
    color: #111827;
    background: transparent;
}
.phone-wrapper input::placeholder { color: #9ca3af; }
.phone-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 4px rgba(99,102,241,0.3);
}

/* ==== Buttons ==== */
.login-btn, .otp-btn {
    width: 100%;
   // background: #6366f1;
  background:#00376d;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .3s;
}
.login-btn:hover, .otp-btn:hover { background: #00376d; }

/* ==== OTP ==== */
.otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.otp-digit {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border .2s, box-shadow .2s;
}
.otp-digit:focus {
    border-color: #6b6ff1;
    box-shadow: 0 0 4px rgba(107,111,241,.3);
}

/* ==== Links ==== */
.header-links, .footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 25px;
    font-size: 13px;
}
.header-links a, .footer-links a {
    color: #6366f1;
    text-decoration: none;
}
.header-links a:hover, .footer-links a:hover { text-decoration: underline; }

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .banner-column,
    .login-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 500px;
    }
    .slider-pagination-wrapper {
        margin: 1rem auto;
    }
}