﻿.login-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* ensures vertical centering */
    background-color: #f8f9fa;
    overflow: hidden;
}

.login-box {
    position: relative;
    background: white;
    padding: 40px;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center; /* centers logo and text */
}

.logo {
    width: 150px;
    margin: 0 auto 20px;
    display: block; /* allows margin auto to center it */
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.error-text {
    margin-top: 10px;
    color: red;
    font-weight: 500;
    text-align: center;
}

.NextButton {
    padding: 10px 65px !important;
    border-radius: 5px;
    background-color: black !important;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.login-form {
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto; /* centers form horizontally */
}

/* ===== Input group styling ===== */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
}

/* ===== Icon beside input ===== */
.icon {
    font-size: 1.2rem;
}

/* ===== Input field styling ===== */
.input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ===== Buttons ===== */
.login-btn, .signin-btn {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .login-btn:hover,
    .signin-btn:hover {
        background-color: #0056b3;
    }

.login-form .input-group:last-child {
    margin-top: 20px;
}

/* Default button look */
.login-option {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    border: 2px solid #007bff;
    background-color: white;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    /* Hover effect */
    .login-option:hover {
        background-color: #007bff;
        color: white;
    }

    /* Highlighted (selected) state */
    .login-option.active {
        background-color: #007bff;
        color: white;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
        border-color: #0056b3;
    }

/* === Spinner overlay within login box === */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 10;
}

/* === Spinner animation === */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px dotted #007bff;
    /*border-top: 4px dotted #007bff;*/
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* === Spinner keyframes === */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
