/* ==========================================================================
   Manzil360 Authentication Stylesheet (m360-auth.css)
   Clean, class-based styling for Login, Register, Forgot Password
   ========================================================================== */

.m360-auth-container {
    max-width: 480px;
    margin: 50px auto 70px auto;
    padding: 0 20px;
}

.m360-auth-container-wide {
    max-width: 580px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.m360-auth-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.m360-auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.m360-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.m360-auth-brand-badge {
    background: transparent;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: unset;
}

.m360-auth-brand-name {
    font-size: 23px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-align: left;
}

.m360-auth-brand-tagline {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 2px;
    text-align: left;
}

.m360-auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.m360-auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.m360-auth-success-alert {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m360-auth-error-alert {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #b45309;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.m360-auth-field {
    margin-bottom: 18px;
    position: relative;
}

.m360-auth-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: block;
    margin-bottom: 6px;
}

.m360-auth-label i {
    color: #64748b;
    margin-right: 4px;
}

.m360-auth-input {
    height: 44px;
    font-size: 14.5px;
    width: 100%;
    box-sizing: border-box;
}

.m360-auth-pwd-wrap {
    position: relative;
    width: 100%;
}

.m360-auth-pwd-input {
    height: 44px;
    font-size: 14.5px;
    padding-right: 42px;
    width: 100%;
    box-sizing: border-box;
}

.m360-auth-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
}

.m360-auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 8px;
}

.m360-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.m360-auth-remember input[type="checkbox"] {
    accent-color: #2563eb;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.m360-auth-forgot-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

.m360-auth-forgot-link:hover {
    text-decoration: underline;
}

.m360-auth-submit-btn {
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.m360-auth-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.m360-auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.m360-auth-footer a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.m360-auth-footer a:hover {
    text-decoration: underline;
}

/* Role Selector Tabs */
.m360-role-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.m360-role-option-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.m360-role-option-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.m360-role-option-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 1.5px #2563eb;
}

.m360-role-option-card i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

/* Responsive Breakpoints */
@media (max-width: 576px) {

    .m360-auth-container,
    .m360-auth-container-wide {
        margin: 20px auto 40px auto;
        padding: 0 12px;
    }

    .m360-auth-card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .m360-role-selector-grid {
        grid-template-columns: 1fr;
    }
}