html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.toast-message {
    min-width: 250px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

/* Microsoft Login Button */
.btn-microsoft-login {
    display: flex;
    align-items: center;
    justify-content: center; /* centers image + text inside button */
    gap: 10px; /* space between logo and text */
    width: 100%;
    max-width: 320px; /* optional: limit max width */
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #0078d4;
    background-color: #ffffff;
    border: 1px solid #0078d4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .btn-microsoft-login img {
        height: 24px;
        width: auto;
    }

    .btn-microsoft-login span {
        text-align: center;
    }

    /* Hover effect */
    .btn-microsoft-login:hover {
        background-color: #005a9e;
        border-color: #004a7c;
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

    /* Active effect */
    .btn-microsoft-login:active {
        background-color: #004a7c;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transform: translateY(0);
    }

/* Override power pages wrapers */
.page-copy {
    width: 100% !important;
}

.xrm-attribute-value {
    display: flex !important;
}

/* Auth slider */
.auth-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out;
}

    .auth-slider::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.2);
    }

.auth-slider {
    animation: slowZoom 8s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    from {
        background-size: 100%;
    }

    to {
        background-size: 110%;
    }
}
/* mobile optimization */
.div-auth-slider {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 960 / 911;
    overflow: hidden;
}

    .div-auth-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* prevents distortion */
    }

@media (max-width: 768px) {
    .div-auth-slider {
        aspect-ratio: 1 / 1;
    }
}