@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
}

.auth-page {
    display: grid;
    place-items: center;
    height: 100vh;
    /* background-image: url(../images/serkoy.png); */
    background-image:url(../images/bgg-login.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

.auth-content {
    width: 100%;
    max-width: 600px;
    height: 90vh;
}

.auth-form {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    margin-top: 10px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.auth-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    transition: all 0.8s ease;
}

.auth-form:hover::before {
    left: 150%;
}

.auth-form:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    width: 140px;
    margin-bottom: 40px;
}

h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}

.subtext {
    font-size: 14px;
    color: #fff;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16PX;
}

label {
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.forgot {
    font-size: 12px;
    color: #fff;
    text-decoration: none !important;
}

input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.btn-auth {
    background: #123458;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn-auth:hover {
    color: #fff;
}

.btn-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-auth:hover::before {
    left: 100%;
}

.register-text {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    color: #333;
}

.register-text a {
    color: #2A3335;
    font-weight: 600;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-image {
    padding: 40px;
}

.auth-image img {
    width: 90%;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 0 10px;
    }

    .auth-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .auth-image {
        display: none;
    }

    .auth-form {
        padding: 40px 24px;
    }

    .element {
        display: none;
    }
}

.error-message {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #e63946;
    background: #ffe5e9;
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 4px solid #e63946;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
    text-align: center;
}

.success-alert {
    background: #d1f7d6;
    color: #1a7f37;
    border-left: 4px solid #1a7f37;
}

.error-alert {
    background: #ffe0e3;
    color: #c1121f;
    border-left: 4px solid #c1121f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite alternate;
    z-index: 0;
}

/* Blob 1 */
.blob1 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #006BFF, #00E6FF);
    top: 10%;
    left: -40px;
    animation-duration: 10s;
}

/* Blob 2 */
.blob2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #FF3CAC, #784BA0, #2B86C5);
    top: 0;
    right: -50px;
    animation-duration: 12s;
}

/* Blob 3 */
.blob3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #42e695, #3bb2b8);
    top: 60%;
    left: 20%;
    animation-duration: 14s;
}

/* Animasi floating */
@keyframes float {
    from {
        transform: translateY(0) translateX(0) scale(1);
    }

    to {
        transform: translateY(-40px) translateX(30px) scale(1.1);
    }
}

.background-title {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    font-size: 140px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 8px;
    z-index: 0;
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
    background: linear-gradient(135deg, #00BFFF, #1E90FF, #FF3CAC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.50;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    animation: marqueeText 15s linear infinite;
}

@keyframes marqueeText {
    0% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    max-width: 80px;
    object-fit: cover;
}

.image-container img:first-child {
    width: 100%;
    height: 100%;
    max-width: 200px;
    margin-right: 40px;
}

@media screen and (min-width: 1800px) {
    .auth-content {
        max-width: 820px;
        height: auto;
    }

    .auth-form {
        padding: 60px 70px;
        border-radius: 24px;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .auth-form h2 {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .auth-form .subtext {
        font-size: 18px;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .auth-form input {
        font-size: 18px;
        padding: 16px 18px;
    }

    label {
        font-size: 16px;
    }

    .btn-auth {
        font-size: 18px;
        padding: 16px;
        font-weight: 600;
    }

    .image-container img:first-child {
        max-width: 250px;
        margin-right: 40px;
    }

    .image-container img:last-child {
        max-width: 120px;
    }

    .background-title {
        font-size: 220px;
        opacity: 0.35;
        animation-duration: 25s;
        -webkit-text-stroke: 3px rgba(255, 255, 255, 0.25);
    }

    .element.blob1 {
        width: 280px;
        height: 280px;
        top: 5%;
        left: -100px;
    }

    .element.blob2 {
        width: 320px;
        height: 320px;
        top: 10%;
        right: -120px;
    }

    .element.blob3 {
        width: 260px;
        height: 260px;
        top: 65%;
        left: 25%;
    }

    .auth-page {
        background-size: cover;
        background-position: center;
    }
}
