﻿/*Sidebar Start*/
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 30px; /* Adjust width */
    height: 100vh;
    background-color: #2A3F54;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

    .sidebar a {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        color: #E7E7E7;
        font-weight: 500;
        text-decoration: none;
        font-size: 16px;
        padding: 10px;
        margin: 10px 0;
        transition: 0.3s;
    }

        .sidebar a:hover, .sidebar .active {
            background: #3d5c79;
            border-radius: 10px;
            padding: 12px;
        }
/*Sidebar End*/
/* ===== KEEP YOUR ORIGINAL CSS (UNCHANGED) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ===== CARD ===== */
.card {
    width: 420px;
    max-width: 90%; /* Shrinks on small screens */
    margin: 0 15px; /* Prevents touching screen edges */
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: center;
}

/* ===== LOGO ===== */
.logo {
    width: 70px;
    margin: 0 auto 10px;
    display: block;
}

/* ===== TEXT ===== */
.title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.subtitle {
    font-size: 18px;
    color: black;
    margin-top: 5px;
}

/* ===== WELCOME ===== */
.welcome {
    display: flex;
    align-items: center;
    margin: 18px 0;
    font-size: 11px;
    color: #94a3b8;
}

    .welcome::before,
    .welcome::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

    .welcome span {
        margin: 0 10px;
    }

/* ===== TABS ===== */
.tabs {
    display: flex;
    background: #e5e7eb;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .tab.active {
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        color: #111827;
    }

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    position: relative;
    min-height: 210px; /* allows growth */
    height: auto; /* expands naturally */
}

/* ===== CONTENT ANIMATION ===== */
.tab-content {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(30px) scale(0.98);
    pointer-events: none;
    transition: all 0.35s ease;
}

    .tab-content.active {
        opacity: 1;
        transform: translateX(0) scale(1);
        pointer-events: auto;
    }

/* ===== INPUT ===== */
.input-box {
    position: relative;
    margin: 10px 0;
}

    /* ICON inside input */
    .input-box img {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        width: 14px; /* slightly smaller */
        opacity: 0.6;
    }

    /* INPUT */
    .input-box input {
        width: 100%;
        padding: 10px 10px 10px 34px; /* reduced height */
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        background: #f1f3f6;
        font-size: 12px;
        outline: none;
    }
/* ===== LOGIN BUTTON ===== */
.login-btn {
    width: 100%;
    padding: 9px; /* reduced height */
    border: none;
    border-radius: 8px;
    background: #3b5ed7;
    color: #fff;
    margin-top: 10px;
    font-size: 13px;
}

/* ===== PROVIDER BOX ===== */
.provider-box {
    background: #f1f3f6;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 15px;
}

.sign-title {
    font-weight: 600;
    margin-top: 10px;
}

.sign-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

/* ===== PROVIDER BUTTON ===== */
.provider-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #fff;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 25px;
    font-size: 12px;
}

    .footer a {
        color: hsl(220 10% 55%);
        text-decoration: none;
    }

.copyright {
    font-size: .75rem;
}


/* Medium screens (tablets) */
@media (max-width: 768px) {
    .card {
        width: 380px;
        padding: 30px 25px;
    }
}

/* Small screens (mobiles) */
@media (max-width: 576px) {
    body {
        align-items: flex-start; /* Prevents vertical overflow issues */
        padding-top: 40px;
    }

    .card {
        width: 100%;
        padding: 25px 20px;
        border-radius: 12px;
    }

    .title {
        font-size: 14px;
    }

    .subtitle {
        font-size: 16px;
    }

    .tabs {
        flex-direction: column;
        gap: 6px;
    }

    .tab {
        width: 100%;
    }

    .content-wrapper {
        height: auto; /* Prevents clipping */
    }
}
