* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --primary: #0b67ff;
    --secondary: #00c2a8;
    --bg-blur: rgba(0, 0, 0, 0.45);
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f6fa;
}

/* Left Panel */
.left-panel {
    flex: 1;
    background-color: #1c2230;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
}

.left-panel img {
    width: 100%;
    /* margin-bottom: 40px; */
}

.byonic-logo {
    font-size: 52px;
    font-weight: 700;
}

.byonic-logo span {
    color: #ff4c29;
}

/* Right Panel */
.right-panel {
    flex: 1.2;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 33.33vw;
    margin: auto 0;

}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

p {
    color: #555;
    font-size: 15px;
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

input {
    width: 100%;

    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #ff4c29;
    box-shadow: 0 0 5px rgba(255, 76, 41, 0.3);
}

.error {
    color: red;
    font-size: 13px;
    margin-bottom: 10px;
}

.btn {
    width: 100%;
    background-color: #d6cece;
    color: rgb(0, 0, 0);
    border: none;
    padding: 14px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn:hover {
    background-color: #ff4c29;
}

.links {
    text-align: right;
    margin: 12px 0 20px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.links a {
    font-size: 14px;
    text-decoration: none;
    color: #000000;
    color: var(--blue-800);
    font-weight: 500;
    font-size: .875rem;
}

* {
    font-family: Boldonse, system-ui;
    font-style: normal;
}

.footer {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #aaa;
}

/* --- Popup overlay (from index.html, adapted) --- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: all;
    z-index: 9999;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup {
    background: linear-gradient(145deg, #ffffff, #f2f2f2);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 750px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(11, 103, 255, 0.2);
    position: relative;
    transform: perspective(1000px) rotateX(0deg) scale(0.8);
    animation: popupIn 0.8s ease forwards;
}

@keyframes popupIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(-20deg) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) scale(1);
    }
}

.logo-container {
    display: flex;
    justify-content: space-evenly;;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    border-radius: 17px 17px 0 0;
}

.logo-container img {
    max-height: 55px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-icon {
    width: 40px !important;
    height: auto;
}

h2 {
    margin: 2.5rem 0 0;
    color: #111;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

p {
    font-size: 1.3rem;
    color: #444;
    line-height: 1.6;
    margin: 41px 0 0;
}

.cta-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1.4rem;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(11, 103, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11, 103, 255, 0.4);
}

@media (max-width: 600px) {
    .popup {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    .logo-container img {
        max-height: 40px;
    }
}

.logo-text h1 span {
    font-weight: bold;
    background: linear-gradient(90deg, #c084fc, #60a5fa, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Boldonse", system-ui;
    font-weight: 700;
    font-style: normal;
    font-size: 1.9rem;
}

.logo-text p {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.4px;
    font-weight: bold;
    font-family: "Boldonse", system-ui;
    font-weight: 700;
    font-style: normal;
    text-align: center;
}

.logo-gradient {
    background: linear-gradient(90.14deg,
            #111b42 12.84%,
            #111b93 45.01%,
            #87322d 99.48%) !important;
    margin: -2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.byonic-credentials-note {
    margin: 1rem 0 20px; 
    background: rgba(11, 103, 255, 0.1);
    border-left: 4px solid #0b67ff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    color: #0b67ff;
}

.overlay.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }
}

.hidden {
    display: none !important;
}

.form-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vh;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 6vh;
}

.sign-in-text {
    color: #273043;
    font-weight: 700;
    font-size: 28px;
}

.page-info-text {
    color: #151a25;
    font-size: 18px;
    font-weight: 600;
}

.mat-tab-labels {
    display: flex;
}

.mat-tab-label-container {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    z-index: 1;
}

.mat-tab-list {
    flex-grow: 1;
    position: relative;
    transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
}

.mat-tab-label {
    height: 48px;
    padding: 0 24px;
    cursor: pointer;
    box-sizing: border-box;
    opacity: .6;
    min-width: 160px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

.mat-tab-label .mat-tab-label-content {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}