﻿/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #6ecbff 0%, #3aa8ff 40%, #1f8aff 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Layer 1 – Big milk wave */
    body::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 220%;
        height: 180px;
        background: radial-gradient(circle at 50% -40px, #ffffff 60%, #f5f5f5 100%);
        border-radius: 50% 50% 0 0 / 28% 28% 0 0;
        animation: wave1 8s ease-in-out infinite;
        opacity: 0.95;
    }

    /* Layer 2 – Sharp wave on top */
    body::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: -10%;
        width: 230%;
        height: 120px;
        background: #ffffff;
        border-radius: 50% 50% 0 0 / 35% 35% 0 0;
        animation: wave2 4.5s ease-in-out infinite;
        opacity: 1;
        box-shadow: 0 -8px 25px rgba(255,255,255,0.7);
    }

/* Floating milk bubbles */
.milk-bubbles {
    position: absolute;
    bottom: 140px;
    left: 10%;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
    animation: bubbleFloat 6s infinite ease-in-out;
    box-shadow: 45px -35px 0 2px white, 85px -55px white, 130px -25px 0 3px white, 70px -80px white;
}

/* Animations */
@keyframes wave1 {
    0% {
        transform: translateX(0) rotate(1deg);
    }

    50% {
        transform: translateX(-20%) rotate(-1deg);
    }

    100% {
        transform: translateX(0) rotate(1deg);
    }
}

@keyframes wave2 {
    0% {
        transform: translateX(0) rotate(-2deg);
    }

    50% {
        transform: translateX(-18%) rotate(1deg);
    }

    100% {
        transform: translateX(0) rotate(-2deg);
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-25px) scale(1.15);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Login Card */
.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 30px 25px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1; /* above milk curves */
}



/* Campaign Title */
.campaign-card {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

    .campaign-card h2 {
        color: #fff;
        font-size: 20px;
        margin: 0;
    }

.campaign-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 6px 0 4px 0;
}

.department {
    font-size: 14px;
    font-weight: 500;
    color: #e6f7ff;
    margin-bottom: 8px;
}
/* Header */
.login-header {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-weight: bold;
}

.logo {
    max-width: 70px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #f1f1f1;
    line-height: 1.4;
}

/* Input with icon */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

.with-icon i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #555;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 14px 12px 36px; /* space for icon */
    border: none;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.9);
}

    .form-control:focus {
        background: #fff;
        border: 2px solid #00b4d8;
    }

/* Footer inside form */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
    color: black;
}

    .form-footer .link {
        color: #00e5ff;
        text-decoration: none;
        font-weight: 500;
    }

/* Button */
.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #023e8a, #0077b6);
    }

    .btn-login i {
        font-size: 18px;
    }

/* Footer */
.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: black;
}

.error-alert {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4e50, #f9d423); /* Red to Yellow */
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}

    .error-alert i {
        font-size: 1.2rem;
        color: #fff;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-type-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    margin-top: 6px;
}

.user-type-label {
    font-size: 15px;
    font-weight: 500;
    color: #0077b6;
    margin-right: 12px;
}

.custom-radio {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
    user-select: none;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

    .custom-radio input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.radio-mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background: #eaf6fc;
    border: 2px solid #00b4d8;
    border-radius: 50%;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.09);
}

.custom-radio input[type="radio"]:checked ~ .radio-mark {
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.16);
    border-color: #0077b6;
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio input[type="radio"]:checked ~ .radio-mark:after {
    display: block;
}

.custom-radio .radio-mark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
}

.custom-marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100%;
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 40px;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}

    .custom-marquee span {
        display: inline-block;
        white-space: nowrap;
        animation: marqueeMove 24s linear infinite;
        min-width: 100vw;
        box-sizing: border-box;
    }
/* User Manuals Buttons */
.user-manuals {
    margin-top: 20px;
    text-align: center;
}

    .user-manuals h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #0077b6;
    }

.manual-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.manual-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    color: #fff;
}

.video-btn {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
}

    .video-btn:hover {
        background: linear-gradient(135deg, #0077b6, #023e8a);
        transform: translateY(-2px);
    }

.video-link {
    margin-top: 12px;
}

.department-btn,
.surveyor-btn,
.verifier-btn {
    background: #0077b6; 
}

.manual-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

@keyframes marqueeMove {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
        padding: 25px 20px;
    }

    .btn-login {
        font-size: 15px;
        padding: 10px;
    }

    .user-type-group {
        flex-direction: row !important;
        gap: 16px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .user-type-label {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .custom-marquee {
        font-size: 13px;
        height: 36px;
    }

        .custom-marquee span {
            min-width: 120vw;
        }

    .manual-links {
        flex-direction: column;
        gap: 12px;
    }
}
