﻿/* SSO Button Styling */
#btnSSO {
    background: linear-gradient(45deg, #ff7e5f, #feb47b); /* Gradient from Coral to Peach */
    color: white;
    border-radius: 25px;
    padding: 12px 25px;
    border: none;
    display: block;
    margin: 0 auto;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

    #btnSSO:hover {
        background: linear-gradient(45deg, #feb47b, #ff7e5f); /* Reverse Gradient on Hover */
        transform: scale(1.05);
    }

/* Submit Button Styling */
.btn-submit {
    background: linear-gradient(45deg, #6a11cb, #2575fc); /* Gradient Blue to Purple */
    color: white;
    border-radius: 25px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background 0.3s ease, transform 0.3s ease;
}
    /* OTP expired – disable Continue button visually */
    .btn-submit.expired {
        background: #cccccc !important; /* neutral gray */
        color: #666666 !important;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none;
    }

        /* Disable hover effect */
        .btn-submit.expired:hover {
            background: #cccccc !important;
            transform: none !important;
        }



    .btn-submit:hover {
        background: linear-gradient(45deg, #2575fc, #6a11cb); /* Reverse Gradient on Hover */
        transform: scale(1.05);
    }

/* Reset Button Styling */
.btn-reset {
    background: linear-gradient(45deg, #1d976c, #93f9b9); /* Gradient Green to Light Green */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .btn-reset:hover {
        background: linear-gradient(45deg, #93f9b9, #1d976c); /* Reverse Gradient on Hover */
        transform: scale(1.05);
    }

/* Close Button Styling */
.btn-close {
    background: linear-gradient(45deg, #f04646, #f78989); /* Gradient Red to Light Red */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s ease;
}

    .btn-close:hover {
        background: linear-gradient(45deg, #f78989, #f04646); /* Reverse Gradient on Hover */
    }






/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 450px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    text-align: center;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Input field styling */
.input-field {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

    .input-field:focus {
        border-color: #28a745; /* Green border when focused */
    }


/* Links Styling */
.links a {
    font-size: 16px;
    color: #6100dc;
    text-decoration: none;
    margin: 0 12px;
}

    .links a:hover {
        text-decoration: underline;
    }

/* Messages and Form Styling */
.messages {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .or-container {
        flex-direction: column;
    }

    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .input-field {
        font-size: 14px;
    }

    .btn-submit,
    .btn-reset {
        padding: 12px;
    }
}


/* Login Box Styling */
.login-box {
    background: #ffffff; /* White background for clean and professional look */
    color: #333; /* Dark text for readability */
    border-radius: 12px; /* Slightly more rounded corners for a modern look */
    padding: 40px 30px; /* Spacious padding for a comfortable layout */
    max-width: 400px;
    margin: 20px auto; /* Center the box with a bit of spacing around */
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Deeper, softer shadow for added depth */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transitions for hover effects */
    background-color: #f8f8f8; /* Light gray background inside the box for a subtle contrast */
}

    /* Abstract Color Blocks (Enhanced Gradient) */
    .login-box::before {
        content: '';
        position: absolute;
        top: -15%;
        left: -15%;
        width: 130%;
        height: 130%;
        background: linear-gradient(45deg, #6a11cb, #2575fc); /* Gradient from Purple to Blue */
        opacity: 0.1; /* Reduced opacity for a subtle effect */
        z-index: -1;
        transform: rotate(-15deg); /* Refined rotation for better aesthetics */
    }

    /* Hover Effect for Login Box */
    .login-box:hover {
        transform: translateY(-10px); /* Slight upward motion for interaction */
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover for emphasis */
    }

    /* Additional styling for form content */
    .login-box h3 {
        font-size: 24px; /* Increased size for a clear, welcoming header */
        font-weight: 600; /* Bold text for prominence */
        color: #333;
        margin-bottom: 20px; /* Spacing for better structure */
    }


/* Styling the divider container */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0px 0; /* Optional: Adds some space above and below */
}

    /* Styling the hr elements inside the divider */
    .divider hr {
        border: 0;
        border-top: 2px solid #bebebe; /* Gray color for the hr */
        width: 40%;
        margin: 0 10px;
    }

    /* Styling the OR text */
    .divider b {
        margin: 0 10px; /* Optional: Adds space around the OR text */
        font-size: 18px; /* Optional: Adjust the font size */
        font-weight: 600;
    }


/* Image Section */
img.contact-image {
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 5%; /* Ensure space below the image */
}


.link-button {
    background: none;
    border: none;
    color: #6100dc; /* same purple as login links */
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin: 0 12px;
    padding: 0;
}

    .link-button:hover {
        text-decoration: underline;
    }

/*MFA-*/

.otp-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.verify-container {
    width: 70%;
    margin: 0 auto;
}

.otp-error {
    color: #D32F2F;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.otp-timer {
    font-size: 16px;
    font-weight: 600;
    color: #2575fc; /* blue from your theme */
    margin-bottom: 8px;
    display: block;
}
/* ===============================
   MFA ERROR – STABLE & MATCHED
   =============================== */

.mfa-alert {
    background-color: #ffffff !important;
    border: 1px solid #e0d4b0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
    transform: none !important;
    cursor: default;
}

    /* 🚫 Disable hover animation ONLY for MFA */
    .mfa-alert:hover {
        transform: none !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
    }

    /* 🚫 Disable decorative gradient */
    .mfa-alert::before {
        display: none !important;
        content: none !important;
    }

/* Title styling – consistent but authoritative */
.mfa-alert-title {
    font-size: 18px;
    font-weight: 600;
    color: #5c4a1d;
    margin-bottom: 12px;
}

/* Message text – readable and calm */
.mfa-alert-text {
    font-size: 15px;
    color: #2f2f2f;
    line-height: 1.6;
}
