/* MSDS Login Page Styles */
.login-container {
    min-height: 100vh;
    background-image: linear-gradient(rgba(69, 103, 206, 0.8), rgba(6, 46, 162, 0.6)),
        url('../build/images/auth/cover_img2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.login-card {
    /* background: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(8px);
    border-radius: 20px;
    /* box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1); */
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-section {
    /* background: rgba(6, 46, 162, 0.3); */
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #062EA2;
    box-shadow: 0 0 0 3px rgba(6, 46, 162, 0.1);
    background: #fff;
}

.btn-login {
    background: linear-gradient(45deg, #E00404, #E00404);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: linear-gradient(45deg, #0847c7, #0847c7);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.logo-container {
    animation: fadeInDown 1s ease-out;
}

.form-container {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content {
    animation: fadeInLeft 1s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 20%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.input-group-text {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    border-color: #062EA2;
    background: #fff;
}

.form-check-input:checked {
    background-color: #062EA2;
    border-color: #062EA2;
}

.mobile-hero {
    background: linear-gradient(45deg, rgba(6, 46, 162, 0.95), rgba(6, 46, 162, 0.85));
    min-height: 120px;
    position: relative;
}

@media (max-width: 768px) {
    .login-card {
        margin: 10px;
        border-radius: 15px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }

    .btn-login {
        padding: 16px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 180px;
    }

    .login-card {
        margin: 5px;
        /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); */
    }
}

/* Theme color accents */
.text-primary {
    color: #062EA2 !important;
}

.text-danger {
    color: #E00404 !important;
}

a {
    color: #062EA2;
    text-decoration: none;
}

a:hover {
    color: #E00404;
    text-decoration: none;
}

.alert-danger {
    background-color: rgba(224, 4, 4, 0.1);
    border-color: #E00404;
    color: #E00404;
}

.border-top {
    border-color: rgba(6, 46, 162, 0.1) !important;
}
