﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e7f3f2 0%, #8db6ae 100%);
    overflow: hidden;
}

/* The Glass Card */
.login-card {
    background: #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 2.5rem;
    font-weight: 400;
    color: #444;
    height: 42px;
    margin-bottom: 10px;
}

h2.title {
    color: #788c98;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p.subtitle {
    color: #9DACB5;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Microsoft Button */
.ms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 2px solid rgb(224, 224, 224);
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .ms-btn:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background: #f5f5f5;
        border-color: #00BDCD;
        transform: translateY(-1px);
    }
    /* Button loading dots */
    .ms-btn.loading {
        pointer-events: none;
        opacity: 0.9;
    }

        .ms-btn.loading .btn-text::after {
            content: "";
            display: inline-block;
            width: 20px;
            text-align: left;
            animation: dots 1.2s steps(4, end) infinite;
        }

@keyframes dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }

    100% {
        content: "";
    }
}

.ms-logo {
    width: 20px;
    height: 20px;
}

.footer-text {
    margin-top: 2rem;
    color: #babbbc;
    font-size: 0.8rem;
}

.error {
    display: none;
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 13px;
}


@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 20px;
        background: linear-gradient(135deg, #e0f2f1 0%, #004d40 100%);
    }

    .login-card {
        width: 100%;
        max-width: none;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin-top: 10vh;
    }

    .logo {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .ms-btn {
        padding: 14px;
        font-size: 1.1rem;
    }
}