@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter" !important;
    min-height: 100vh;
    display: flex;
    background: #e8e8e8;
    margin: 0;
}

.card {
    display: flex;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
}

/* ── LEFT PANEL ── */
.left {
    flex: 1.5;
    position: relative;
    overflow: hidden;
}

.left-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.72);
}

/* ── RIGHT PANEL ── */
.right {
    flex: 1;
    background: #ffffff;
    padding: 52px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* Logo */
.logo {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    /* keeps same text color as parent */
}

.logo span:first-child {
    color: #1a7eff;
}

.logo span:last-child {
    color: #111;
}

/* Heading */
.heading {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 26px;
    letter-spacing: -0.4px;
}

/* Form */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.field input {
    width: 100%;
    padding: 15px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder {
    color: #bbb;
}

/* Password wrapper */
.pwd-wrap {
    position: relative;
}

.pwd-wrap input {
    padding-right: 40px;
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #aaa;
    display: flex;
    align-items: center;
}

.eye-btn:hover {
    color: #555;
}

/* Remember / Forgot row */
.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 20px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    user-select: none;
}

/* Custom toggle switch */
.toggle {
    width: 32px;
    height: 18px;
    background: #ddd;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.toggle.active {
    background: #1a7eff;
}

.toggle.active::after {
    transform: translateX(14px);
}

.forgot {
    font-size: 13px;
    color: #2374E7;
    text-decoration: none;
    font-weight: 500;
}

.forgot:hover {
    text-decoration: underline;
}

/* Sign in button */
.btn-signin {
    width: 100%;
    padding: 13px;
    background: #2374E7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 15px;
    letter-spacing: 0.2px;
}

.btn-signin:hover {
    background: #0f6de8;
}

.btn-signin:active {
    transform: scale(0.99);
}

/* Google button */
.btn-google {
    width: 100%;
    padding: 13px;
    background: #333333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
    margin-top: 30px;
}

.underline {
    margin-top: 25px;
    width: 100%;
    height: 2px;
    background-color: #E5E5E5;
}

.btn-google:hover {
    background: #222;
}

/* Signup link */
.signup-row {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

.signup-row a {
    color: #2374E7;
    text-decoration: none;
    font-weight: 500;
}

.signup-row a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
    .left {
        flex: 1.1;
    }

    .right {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .left {
        display: none;
    }

    .right {
        padding: 40px 28px 36px;
        border-radius: 0;
    }

    .card {
        border-radius: 0;
    }
}

.tab-container {
    position: relative;
    display: inline-flex;
    background: #EFEFF0;
    border-radius: 6px;
    padding: 4px;
    width: 280px;
    margin-bottom: 20px;
}

/* Sliding background */
.tab-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.33% - 4px); /* for 3 tabs */
    height: calc(100% - 8px);
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Positions */
.tab-container.active-user .tab-slider {
    transform: translateX(0%);
}

.tab-container.active-admin .tab-slider {
    transform: translateX(100%);
}

.tab-container.active-master .tab-slider {
    transform: translateX(200%);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.tab.active {
    color: #000;
    font-weight: 500;
}

.forgot-password-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* align-items: center; */
}

.back-to-login {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    justify-content: center;
    padding-top: 12px;
}

.back-to-login p {
    font-weight: 400;
    font-size: 14px;
}

.forgot-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forgot-header h2 {
    color: #1a7eff;
    font-size: 32px;
}

.forgot-header p {
    font-size: 14px;
}

.forgot-password-section input {
    padding: 12px;
    margin-top: 20px;
    border: 1px solid #d9dde4;
    border-radius: 6px;
    outline: none;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    align-items: center;

}

.submit-btn {
    background-color: #1a7eff;
    color: white;
    padding: 10px 80px;
    border: 1px solid #1a7eff;
    border-radius: 6px;
    cursor: pointer;
    width: 50%;
}

.forgot-password-section hr {
    border: none;
    border-top: 1px solid #d9dde4;
}