/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7faff;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

html,
html.swal2-shown,
body.swal2-shown,
body.swal2-height-auto {
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: hidden !important;
}

#form1 {
    width: 100%;
    max-width: 420px;
}

/* Animated Gradient Background with Waves */
body::before,
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, #a8edea, #d0b3ff, #74ebd5);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 50%;
    animation: waveAnimation 10s ease-in-out infinite alternate;
}

body::after {
    animation-delay: 5s;
    opacity: 0.6;
}

@keyframes waveAnimation {
    0% {
        transform: translate(-10%, -10%) scale(1);
        background-position: 0% 50%;
    }

    50% {
        transform: translate(10%, 10%) scale(1.1);
        background-position: 100% 50%;
    }

    100% {
        transform: translate(-10%, -10%) scale(1);
        background-position: 0% 50%;
    }
}

/* Login Container with Glass Effect */
.login-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

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

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

/* Logo */
.logo-img {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #5e60ce;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form Elements */
label {
    font-weight: 500;
    display: block;
    text-align: left;
    margin-top: 15px;
    color: #555;
}

input[type="email"],
input[type="password"],
.aspNetDisabled {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    min-height: 46px;
}

/* Gradient Button */
.btn {
    background: linear-gradient(90deg, #48cae4, #5e60ce);
    color: #fff;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 96, 206, 0.4);
}

/* Links */
.signup-link {
    display: block;
    margin-top: 15px;
    color: #5e60ce;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link:hover {
    text-decoration: underline;
    color: #48cae4;
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        padding: 24px;
    }

    #form1 {
        max-width: 420px;
    }

    .login-container {
        padding: 32px 28px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    .login-container {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .logo-img {
        height: 58px;
        margin-bottom: 10px;
    }

    .company-name {
        font-size: 16px;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    label {
        margin-top: 10px;
    }

    input[type="email"],
    input[type="password"],
    .aspNetDisabled {
        font-size: 16px;
        min-height: 44px;
    }

    .btn {
        margin-top: 16px;
        min-height: 46px;
    }

    .signup-link {
        margin-top: 10px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 18px 14px;
    }

    h2 {
        font-size: 18px;
    }

    .logo-img {
        height: 50px;
    }
}
