﻿

/* Login Button */
.login-options {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-ms-login {
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #fff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 320px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .btn-ms-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
        transform: translateX(-100%);
        transition: transform 1s ease;
    }

    .btn-ms-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
        background-color: #f8fafc;
    }

        .btn-ms-login:hover::before {
            transform: translateX(100%);
        }

    .btn-ms-login img {
        width: 20px;
        height: 20px;
    }

/* Footer */
.footer-logo {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

    .footer-logo img {
        max-width: 80px;
        margin-bottom: 5px;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

        .footer-logo img:hover {
            opacity: 1;
        }

.copyright {
    font-size: 12px;
    color: #a0aec0;
}

/* Decorative Elements */
.decorative-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #e2e8f0 2px, transparent 3px);
    background-size: 15px 15px;
    opacity: 0.5;
    z-index: 1;
}

.dots-1 {
    top: 30px;
    right: 40px;
}

.dots-2 {
    bottom: 100px;
    left: 30px;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.pulse {
    animation-name: pulse;
}

@keyframes pulse {
    from {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }

    to {
        transform: scale3d(1, 1, 1);
    }
}

/* Validation Messages */
.validation-messages {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(220, 53, 69, 0.1);
}

/* RESPONSIVE STYLES */
/* Tablet */
@media (max-width: 768px) {
    .container-login100 {
        padding: 0;
    }

    .login-card {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .logo-side {
        width: 100%;
        height: 160px;
    }

    .form-side {
        width: 100%;
    }

    .form-content {
        padding: 20px;
        flex: 1;
    }

    .icrm-logo {
        font-size: 48px;
    }

    .decorative-dots {
        display: none;
    }
}

/* Medium phones */
@media (max-width: 576px) {
    body {
        background-color: #fff;
    }

    .container-login100 {
        background: none;
    }

    .login-card {
        box-shadow: none;
    }

    .logo-side {
        height: 140px;
    }

    .form-content {
        padding: 16px 20px;
    }

    .top-logos {
        margin-bottom: 20px;
    }

    .login-title {
        font-size: 24px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

        .login-title::after {
            width: 50px;
        }

    .welcome-text {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .content-wrapper {
        flex: 1;
        justify-content: flex-start;
        padding-top: 10px;
    }

    .login-options {
        margin: 20px auto 30px;
    }

    .footer-logo {
        padding-bottom: 20px;
    }
}

/* iPhone 12 Pro specific */
@media (max-width: 390px) {
    .logo-side {
        height: 130px;
    }

    .icrm-logo {
        font-size: 42px;
    }

    .form-content {
        padding: 16px;
    }

    .top-logos {
        padding: 5px 0;
        margin-bottom: 15px;
    }

    .customer-logo {
        max-height: 30px;
    }

    .login-title {
        font-size: 22px;
        margin-top: 5px;
        padding-bottom: 10px;
    }

        .login-title::after {
            width: 45px;
            height: 3px;
        }

    .welcome-text {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .btn-ms-login {
        padding: 12px 15px;
        font-size: 14px;
    }

    .footer-logo img {
        max-width: 65px;
    }

    .copyright {
        font-size: 10px;
    }
}

/* Smaller phones */
@media (max-width: 360px) {
    .logo-side {
        height: 110px;
    }

    .icrm-logo {
        font-size: 36px;
    }

    .login-title {
        font-size: 20px;
    }

    .welcome-text {
        font-size: 12px;
    }

    .btn-ms-login {
        padding: 10px 15px;
        font-size: 13px;
    }

        .btn-ms-login img {
            width: 18px;
            height: 18px;
        }

    .customer-logo {
        max-height: 25px;
    }

    .footer-logo img {
        max-width: 60px;
    }
}



@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


/* Alternative Login Link Styling */
.alternative-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0078d4;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    margin-top: 10px;
    transition: all 0.2s ease;
}

    .alternative-login-link:hover {
        color: #005a9e;
        text-decoration: none;
    }

    .alternative-login-link .bi {
        margin-right: 6px;
        font-size: 16px;
    }
