@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background:
        linear-gradient(rgba(8, 12, 20, 0.70), rgba(8, 12, 20, 0.78)),
        url('../img/Imglogin.jpeg') center center / cover no-repeat fixed;
    color: #ffffff;
}

.login-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.login-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(14, 18, 28, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 70px rgba(0,0,0,0.35);
}

.login-left {
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(0, 224, 255, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(54, 106, 255, 0.14), transparent 30%);
}

.brand-box {
    max-width: 500px;
}

.brand-pill {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 22px;
}

.brand-box h1 {
    margin: 0 0 16px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
}

.brand-box p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 17px;
    line-height: 1.8;
}

.login-right {
    background: rgba(255,255,255,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.login-card {
    width: 100%;
    max-width: 430px;
}

.login-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: #eef2f8;
    padding: 8px;
    border-radius: 16px;
}

.login-tab {
    flex: 1;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    background: transparent;
    color: #4f5e74;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.login-tab.active {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-form.hidden {
    display: none;
}

.login-header {
    margin-bottom: 20px;
}

.login-header h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
}

.login-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 14px;
    padding: 15px 16px;
    margin-bottom: 18px;
    background: #f9fbfd;
    color: #111827;
    font-size: 14px;
    transition: all .25s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #86b817;
    box-shadow: 0 0 0 4px rgba(134, 184, 23, 0.14);
    background: #ffffff;
}

input::placeholder {
    color: #98a3b5;
}

.input-password-wrap {
    position: relative;
    margin-bottom: 18px;
}

.input-password-wrap input {
    margin-bottom: 0;
    padding-right: 52px;
}

.toggle-pass {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
}

.btn-login {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 16px;
    margin-top: 6px;
    background: linear-gradient(135deg, #86b817, #6ea10e);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 14px 28px rgba(134, 184, 23, 0.28);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(134, 184, 23, 0.34);
}

.btn-link {
    display: inline-block;
    margin-top: 18px;
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 36px 28px 10px;
    }

    .brand-box h1 {
        font-size: 38px;
    }

    .brand-box p {
        font-size: 15px;
    }

    .login-right {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .login-page {
        padding: 16px;
    }

    .login-left {
        padding: 26px 20px 0;
    }

    .login-right {
        padding: 18px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-header h2 {
        font-size: 28px;
    }

    .brand-box h1 {
        font-size: 30px;
    }

    .login-tabs {
        gap: 8px;
        padding: 6px;
    }

    .login-tab {
        padding: 12px 10px;
        font-size: 13px;
    }
}