/* ======================================
   ABBAN ME ZUBE ENTERPRISES
   Ultra-Responsive Professional Login UI
====================================== */

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 10px;
    position: relative;
}

/* Animated Background Shapes */

body::before {
    content: "";
    position: fixed;
    width: 700px;
    height: 700px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -250px;
    left: -180px;
    animation: float 12s infinite ease-in-out;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 50%;
    bottom: -220px;
    right: -180px;
    animation: float 14s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(30px); }
    100% { transform: translateY(0); }
}

/* Main Card Container */

.login-container {
    width: 1050px;
    max-width: 100%;
    margin: auto;
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 5;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LEFT PANEL */

.login-left {
    width: 45%;
    padding: 55px 45px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.login-left h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}

.login-left h3 {
    text-align: center;
    margin-top: 6px;
    font-weight: 400;
    color: #dbeafe;
    font-size: 15px;
}

.login-left p {
    margin: 24px 0;
    text-align: center;
    line-height: 1.6;
    color: #f8fafc;
    font-size: 14px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.16);
}

.feature i {
    color: #FFD700;
    font-size: 20px;
}

.feature span {
    font-size: 14px;
}

/* RIGHT PANEL */

.login-right {
    width: 55%;
    background: #ffffff;
    padding: 55px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    color: #1e3a8a;
    font-size: 30px;
    margin-bottom: 8px;
}

.login-right p {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 14px;
}

/* Form & Inputs */

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box i:first-child {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 16px;
}

.input-box input {
    width: 100%;
    padding: 15px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.25s ease;
}

.input-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

#togglePassword {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

#togglePassword:hover {
    color: #2563eb;
}

/* Remember Checkbox */

.remember {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
}

.remember input[type="checkbox"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Login Button */

.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.login-btn:active {
    transform: scale(0.98);
}

/* Error Alert */

.error-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fca5a5;
    font-weight: 500;
}

/* Copyright Footer */

.copyright {
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.copyright strong {
    color: #475569;
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*======================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
======================================*/

@media (max-width: 900px) {
    body {
        padding: 30px 15px;
    }

    .login-container {
        flex-direction: column;
        border-radius: 20px;
        margin: auto;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        text-align: center;
        padding: 35px 25px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .logo {
        width: 130px;
    }

    .login-left h1 {
        font-size: 24px;
    }

    .login-right h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }

    .login-container {
        border-radius: 16px;
    }

    .login-left {
        padding: 25px 18px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .login-left h1 {
        font-size: 22px;
    }

    .login-left h3 {
        font-size: 13px;
    }

    .login-left p {
        margin: 16px 0;
        font-size: 13px;
    }

    .feature {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .feature i {
        font-size: 18px;
    }

    .feature span {
        font-size: 13px;
    }

    .login-right h2 {
        font-size: 22px;
    }

    .input-box input {
        padding: 14px 44px;
        font-size: 14px;
    }

    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* =====================================
   WELCOME BACK — TRUSTED DEVICES
===================================== */

/* Success / info notice (e.g. "Saved sign-in removed.") */

.notice-box {
    background: #dcfce7;
    color: #15803d;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #86efac;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
}

.welcome-back {
    margin-bottom: 26px;
}

.welcome-back-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.welcome-back-icon {
    font-size: 30px;
    color: #2563eb;
}

.welcome-back-head h3 {
    color: #1e3a8a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.welcome-back-head p {
    color: #64748b;
    font-size: 13px;
    margin: 2px 0 0;
}

.wb-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.wb-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.10);
}

.wb-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e1b4b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.wb-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wb-avatar-fallback {
    display: inline-flex;
}

.wb-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wb-info strong {
    color: #0f172a;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-info span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

.wb-info small {
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wb-continue {
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    white-space: nowrap;
}

.wb-continue:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.wb-remove {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wb-remove:hover {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

.wb-other-account {
    width: 100%;
    margin-top: 6px;
    background: transparent;
    border: 1.5px dashed #cbd5e1;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    padding: 11px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.wb-other-account:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

@media (max-width: 480px) {
    .wb-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .wb-info {
        flex: 1 1 60%;
    }

    .wb-actions {
        width: 100%;
        justify-content: flex-end;
    }
}