/* ===============================
   TICTEC PORTAL LOGIN DESIGN
   Blue/Navy Dashboard Theme
================================ */

.portal-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #111827;
    overflow-x: hidden;
    position: relative;
}

.portal-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(124, 58, 237, 0.14), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef4ff 45%, #f4f7fb 100%);
    z-index: 0;
}

.login-bg-circle {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.42;
    z-index: 1;
    animation: floatLoginShape 8s ease-in-out infinite;
}

.circle-one {
    width: 280px;
    height: 280px;
    background: #2563eb;
    top: 8%;
    left: 6%;
}

.circle-two {
    width: 340px;
    height: 340px;
    background: #7c3aed;
    right: 5%;
    bottom: 8%;
    animation-delay: 2s;
}

@keyframes floatLoginShape {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-22px);
    }
}

/* Main Layout */
.login-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 48px 70px;
    gap: 45px;
}

/* Left Branding */
.login-brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-content {
    max-width: 660px;
    animation: loginFadeLeft 0.8s ease;
}

@keyframes loginFadeLeft {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-logo-box {
    width: 150px;
    height: 150px;
    border-radius: 34px;
    background: #ffffff;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    margin-bottom: 26px;
    overflow: hidden;
}

.login-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 26px;
    display: block;
}

.login-badge {
    display: inline-flex;
    padding: 9px 15px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.16);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.login-brand-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: #0f172a;
    font-weight: 900;
}

.login-brand-content p {
    margin: 0;
    max-width: 590px;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.login-simple-note {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
}

.login-simple-note span {
    width: 12px;
    height: 12px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.login-simple-note p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

/* Right Form Area */
.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    animation: loginFadeRight 0.8s ease;
}

@keyframes loginFadeRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo inside login card - visible on desktop and mobile */
.login-card-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.login-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 22px;
}

/* Card Header */
.login-card-header {
    margin-bottom: 26px;
    text-align: center;
}

.login-card-header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 34px;
    font-weight: 900;
}

.login-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

/* Form */
.login-form {
    display: grid;
    gap: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.login-input {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    transition: 0.25s ease;
}

.login-input:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-input span {
    color: #2563eb;
    font-weight: 900;
    min-width: 18px;
    text-align: center;
}

.login-input input {
    width: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 15px 0 !important;
    color: #111827 !important;
    font-size: 15px;
    box-shadow: none !important;
}

.login-input input::placeholder {
    color: #94a3b8;
}

.login-button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 45px rgba(37, 99, 235, 0.34);
}

.login-button:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-footer span {
    color: #64748b;
    font-size: 14px;
}

.login-footer a {
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.login-footer a:hover {
    color: #1d4ed8;
}

/* Error */
.login-error {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

/* Tablet */
@media (max-width: 1050px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        padding: 38px 28px;
        gap: 30px;
    }

    .login-brand-content {
        text-align: center;
    }

    .login-logo-box {
        margin-left: auto;
        margin-right: auto;
    }

    .login-brand-content p {
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .login-brand-section {
        display: none !important;
    }

    .login-wrapper {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 16px;
    }

    .login-card {
        max-width: 100%;
        padding: 28px 22px;
        border-radius: 26px;
    }

    .login-card-logo {
        width: 105px;
        height: 105px;
        margin-bottom: 20px;
        border-radius: 24px;
        padding: 8px;
    }

    .login-card-logo img {
        border-radius: 18px;
    }

    .login-card-header h2 {
        font-size: 30px;
    }

    .login-footer {
        flex-direction: column;
        gap: 5px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 18px 14px;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .login-card-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 18px;
        border-radius: 21px;
    }

    .login-card-logo img {
        border-radius: 15px;
    }

    .login-card-header h2 {
        font-size: 28px;
    }

    .login-input,
    .login-button {
        min-height: 54px;
    }
}

/* ===============================
   PARTICLE NETWORK BACKGROUND
================================ */

.particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
}

.login-wrapper {
    z-index: 3;
}

.login-bg-circle {
    z-index: 2;
}

@media (max-width: 768px) {
    .particle-canvas {
        opacity: 0.45;
    }
}