﻿/**************************************************************/
/* Professional Compact Login Page */
/*************************************************************/

body {
    font-family: 'Tajawal', sans-serif;
    background-image: url('../../../Content/assets/images/bkmain.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container */
.login-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    text-align: center;
}

/* Logo */
.login-logo {
    width: 85px;
    margin-bottom: 15px;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Title */
.login-container h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #2c2f33;
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

    /* Input focus */
    .form-control:focus {
        outline: none;
        border-color: #c7974f;
        box-shadow: 0 0 0 2px rgba(199, 151, 79, 0.2);
    }

/* Button */
.custom-btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #c7974f;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .custom-btn-primary:hover {
        background-color: #b38f5a;
        transform: translateY(-1px);
    }

    .custom-btn-primary:active {
        transform: scale(0.98);
    }

/* Back link */
.back-link {
    display: inline-block;
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
}

    .back-link:hover {
        color: #c7974f;
    }

/* Button layout fix */
#submitBtn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Spinner hidden by default */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.7s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading state */
#submitBtn.loading .btn-text {
    opacity: 0.7;
}

#submitBtn.loading .btn-spinner {
    display: inline-block;
}

/* Disable button while loading */
#submitBtn.loading {
    pointer-events: none;
    opacity: 0.9;
}


/* Mobile */
@media (max-width: 600px) {
    .login-container {
        padding: 20px;
    }

    .login-logo {
        width: 75px;
    }
}
